core/state/snapshot: fix typo in comment (#23219)

This commit is contained in:
Ziyuan Zhong 2021-08-10 17:04:29 +08:00 committed by GitHub
parent e4b687cf46
commit 57d9e0ac75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ func (t *Tree) cap(diff *diffLayer, layers int) *diskLayer {
if flattened.memory < aggregatorMemoryLimit { if flattened.memory < aggregatorMemoryLimit {
// Accumulator layer is smaller than the limit, so we can abort, unless // Accumulator layer is smaller than the limit, so we can abort, unless
// there's a snapshot being generated currently. In that case, the trie // there's a snapshot being generated currently. In that case, the trie
// will move fron underneath the generator so we **must** merge all the // will move from underneath the generator so we **must** merge all the
// partial data down into the snapshot and restart the generation. // partial data down into the snapshot and restart the generation.
if flattened.parent.(*diskLayer).genAbort == nil { if flattened.parent.(*diskLayer).genAbort == nil {
return nil return nil