diff --git a/core/state/statedb.go b/core/state/statedb.go index be4449dc1..8f8c255f9 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -2627,8 +2627,6 @@ func (s *StateDB) AddrPrefetch(slotDb *ParallelStateDB) { // merged back to the main StateDB. func (s *StateDB) MergeSlotDB(slotDb *ParallelStateDB, slotReceipt *types.Receipt, txIndex int, fees *DelayedGasFee) *StateDB { - s.SetTxContext(slotDb.thash, slotDb.txIndex) - for s.nextRevisionId < slotDb.nextRevisionId { if len(slotDb.validRevisions) > 0 { r := slotDb.validRevisions[s.nextRevisionId] @@ -2830,7 +2828,7 @@ func (s *StateDB) MergeSlotDB(slotDb *ParallelStateDB, slotReceipt *types.Receip s.snapParallelLock.Unlock() } } - + s.SetTxContext(slotDb.thash, slotDb.txIndex) return s }