diff --git a/core/state/database.go b/core/state/database.go index e663556336..af8cc1a36e 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -19,7 +19,6 @@ package state import ( "errors" "fmt" - "sync" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/lru" diff --git a/core/state/statedb.go b/core/state/statedb.go index e5c6669da7..ea1e186138 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -175,24 +175,11 @@ func New(root common.Hash, db Database, snaps *snapshot.Tree) (*StateDB, error) } if tr.IsVerkle() { sdb.witness = sdb.NewAccessWitness() - // if sdb.snaps == nil { - // snapconfig := snapshot.Config{ - // CacheSize: 256, - // Recovery: false, - // NoBuild: false, - // AsyncBuild: false, - // Verkle: true, - // } - // sdb.snaps, err = snapshot.New(snapconfig, db.DiskDB(), db.TrieDB(), root) - // if err != nil { - // return nil, err - // } - // } - } - if sdb.snaps != nil { - if sdb.snap = sdb.snaps.Snapshot(root); sdb.snap == nil { - } } + // if sdb.snaps != nil { + // if sdb.snap = sdb.snaps.Snapshot(root); sdb.snap == nil { + // } + // } return sdb, nil }