mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-10 18:16:39 +00:00
core/state: fix StateDB Reader Error Discard After Commit (#34899)
This commit is contained in:
parent
e1e3eaa381
commit
e71098ba4e
1 changed files with 1 additions and 1 deletions
|
|
@ -1355,7 +1355,7 @@ func (s *StateDB) commitAndFlush(block uint64, deleteEmptyObjects bool, noStorag
|
|||
|
||||
// The reader update must be performed as the final step, otherwise,
|
||||
// the new state would not be visible before db.commit.
|
||||
s.reader, _ = s.db.Reader(s.originalRoot)
|
||||
s.reader, err = s.db.Reader(s.originalRoot)
|
||||
return ret, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue