core/state/snapshot: faster account iteration, CLI integration
This commit is contained in:
committed by
Péter Szilágyi
parent
6ddb92a089
commit
19099421dc
@ -210,7 +210,7 @@ func (dl *diffLayer) Journal(buffer *bytes.Buffer) (common.Hash, error) {
|
||||
dl.lock.RLock()
|
||||
defer dl.lock.RUnlock()
|
||||
|
||||
if dl.stale {
|
||||
if dl.Stale() {
|
||||
return common.Hash{}, ErrSnapshotStale
|
||||
}
|
||||
// Everything below was journalled, persist this layer too
|
||||
|
Reference in New Issue
Block a user