From 461422d52ea2166b347bbe3e70edd7dcd7dfaaa0 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Wed, 13 Sep 2023 13:23:44 -0700 Subject: [PATCH] Added acounts and storages back into sdb.snap within the nill condition. --- core/state/statedb.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/state/statedb.go b/core/state/statedb.go index e123ca48c..060c8f160 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -174,6 +174,8 @@ func New(root common.Hash, db Database, snaps *snapshot.Tree) (*StateDB, error) log.Debug("Snapshots not availble. Using plugin snapshot.") sdb.snap = &pluginSnapshot{root} sdb.stateObjectsDestruct = make(map[common.Address]*types.StateAccount) + sdb.accounts = make(map[common.Hash][]byte) + sdb.storages = make(map[common.Hash]map[common.Hash][]byte) } // End PluGeth section return sdb, nil