forked from cerc-io/plugeth
Added acounts and storages back into sdb.snap within the nill condition.
This commit is contained in:
parent
51c041850b
commit
461422d52e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user