tevm_open_cursor_after_commit (#2141)

This commit is contained in:
Alex Sharov 2021-06-11 15:35:00 +07:00 committed by GitHub
parent eedabfca85
commit 7b08a3b138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +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
}
// TODO: This creates stacked up deferrals
defer tx.Rollback()
}