Skip to content

Commit

Permalink
chore: delete debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang committed Aug 21, 2024
1 parent ee30d17 commit 7076bb1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions core/state/statedb_debug_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ import (
"github.com/ethereum/go-ethereum/log"
)

var (
DiffVersionCount = 0
DiskVersionCount = 0
)

type VersaAccountInfo struct {
Address common.Address
Account *types.StateAccount
Expand Down Expand Up @@ -221,18 +216,6 @@ func (ds *DebugVersionState) OnCloseState(handler versa.StateHandler) {
}
ds.PostState = stateInfo

oldDiskVersionCount := DiskVersionCount
if ds.PreState.Root.Cmp(ds.PostState.Root) != 0 {
DiffVersionCount++
if ds.PostState.IsDiskVersion {
DiskVersionCount++
}
}

if ds.Version%1000 == 0 || oldDiskVersionCount != DiskVersionCount {
log.Info("version state info", "current block", ds.Version, "diff version count", DiffVersionCount, "disk version count", DiskVersionCount)
}

ds.sortItems()

data, err := json.Marshal(ds)
Expand Down

0 comments on commit 7076bb1

Please sign in to comment.