core/state/snapshot: fix trie generator reporter (#21004)

This commit is contained in:
gary rong
2020-04-30 10:43:50 +03:00
committed by GitHub
parent 3cebfb6664
commit 2337aa64eb
2 changed files with 3 additions and 6 deletions
+2 -6
View File
@@ -102,12 +102,8 @@ func (stat *generateStats) progress(accounts, slots uint64, curAccount common.Ha
stat.accounts += accounts
stat.slots += slots
if curAccount != (common.Hash{}) {
stat.curAccount = curAccount
}
if curSlot != (common.Hash{}) {
stat.curSlot = curSlot
}
stat.curAccount = curAccount
stat.curSlot = curSlot
}
// report prints the cumulative progress statistic smartly.