From f6b851578a594dda13d08a021e0f709ddd7d08da Mon Sep 17 00:00:00 2001 From: "will@2012" Date: Mon, 8 Jul 2024 09:54:11 +0800 Subject: [PATCH] fix: fix statedb copy --- core/state/statedb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 95406ffba8..525da23b0f 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -933,8 +933,8 @@ func (s *StateDB) copyInternal(doPrefetch bool) *StateDB { // along with their original values. state.accounts = copySet(s.accounts) state.storages = copy2DSet(s.storages) - state.accountsOrigin = copySet(state.accountsOrigin) - state.storagesOrigin = copy2DSet(state.storagesOrigin) + state.accountsOrigin = copySet(s.accountsOrigin) + state.storagesOrigin = copy2DSet(s.storagesOrigin) // Deep copy the logs occurred in the scope of block for hash, logs := range s.logs {