Skip to content

Commit d5e38ad

Browse files
committed
chore: adjust log confidition
1 parent d5a438a commit d5e38ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core/state/statedb_debug_version.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,14 @@ func (ds *DebugVersionState) OnCloseState(handler versa.StateHandler) {
221221
}
222222
ds.PostState = stateInfo
223223

224+
oldDiskVersionCount := DiskVersionCount
224225
if ds.PreState.Root.Cmp(ds.PostState.Root) != 0 {
225226
DiffVersionCount++
227+
if ds.PostState.IsDiskVersion {
228+
DiskVersionCount++
229+
}
226230
}
227-
oldDiskVersionCount := DiskVersionCount
228-
if ds.PostState.IsDiskVersion {
229-
DiskVersionCount++
230-
}
231+
231232
if ds.Version%1000 == 0 || oldDiskVersionCount != DiskVersionCount {
232233
log.Info("version state info", "current block", ds.Version, "diff version count", DiffVersionCount, "disk version count", DiskVersionCount)
233234
}

0 commit comments

Comments
 (0)