fix: fix statedb copy (#2567)

This commit is contained in:
will-2012 2024-07-10 15:39:20 +08:00 committed by GitHub
parent 863fdea026
commit a00ffa762c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -933,8 +933,8 @@ func (s *StateDB) copyInternal(doPrefetch bool) *StateDB {
// along with their original values. // along with their original values.
state.accounts = copySet(s.accounts) state.accounts = copySet(s.accounts)
state.storages = copy2DSet(s.storages) state.storages = copy2DSet(s.storages)
state.accountsOrigin = copySet(state.accountsOrigin) state.accountsOrigin = copySet(s.accountsOrigin)
state.storagesOrigin = copy2DSet(state.storagesOrigin) state.storagesOrigin = copy2DSet(s.storagesOrigin)
// Deep copy the logs occurred in the scope of block // Deep copy the logs occurred in the scope of block
for hash, logs := range s.logs { for hash, logs := range s.logs {