Update stage_tevm.go (#2144)

This commit is contained in:
ledgerwatch 2021-06-11 10:11:23 +01:00 committed by GitHub
parent e1ad20460c
commit b5edbe272f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,11 +207,11 @@ func transpileBatch(logPrefix string, s *StageState, fromBlock uint64, toBlock u
if err != nil {
return fmt.Errorf("cannot begin the batch transaction on %q: %w", codeHash, err)
}
k, hash = common.CopyBytes(k), common.CopyBytes(hash)
_, err = c.SeekBothRange(k, hash)
if err != nil {
return err
}
//k, hash = common.CopyBytes(k), common.CopyBytes(hash)
//_, err = c.SeekBothRange(k, hash)
//if err != nil {
// return err
//}
// TODO: This creates stacked up deferrals
defer tx.Rollback()
}