mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
core/state/snapshot: fix test
This commit is contained in:
parent
05ee450f2d
commit
2534628542
1 changed files with 2 additions and 1 deletions
|
|
@ -115,6 +115,7 @@ func (it *diffAccountIterator) Next() bool {
|
|||
}
|
||||
// Iterator seems to be still alive, retrieve and cache the live hash
|
||||
it.curHash = it.keys[0]
|
||||
|
||||
// key cached, shift the iterator and notify the user of success
|
||||
it.keys = it.keys[1:]
|
||||
return true
|
||||
|
|
@ -135,7 +136,7 @@ func (it *diffAccountIterator) Hash() common.Hash {
|
|||
// This method may _fail_, if the underlying layer has been flattened between
|
||||
// the call to Next and Account. That type of error will set it.Err.
|
||||
// This method assumes that flattening does not delete elements from
|
||||
// the accountdata mapping (writing nil into it is fine though), and will panic
|
||||
// the accountData mapping (writing nil into it is fine though), and will panic
|
||||
// if elements have been deleted.
|
||||
//
|
||||
// Note the returned account is not a copy, please don't modify it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue