diff --git a/core/parallel_state_processor.go b/core/parallel_state_processor.go index 952f69aea..3d4e1f825 100644 --- a/core/parallel_state_processor.go +++ b/core/parallel_state_processor.go @@ -738,9 +738,6 @@ func (p *ParallelStateProcessor) confirmTxResults(statedb *state.StateDB, gp *Ga // merge slotDB into mainDB statedb.MergeSlotDB(result.slotDB, result.receipt, resultTxIndex, result.result.delayFees) - // after merge, the slotDB will not accessible, reclaim the resource - result.slotDB.PutSyncPool() - delayGasFee := result.result.delayFees // add delayed gas fee if delayGasFee != nil { @@ -792,6 +789,8 @@ func (p *ParallelStateProcessor) confirmTxResults(statedb *state.StateDB, gp *Ga } p.txReqExecuteRecord[resultTxIndex]++ } + // after merge, the slotDB will not accessible, reclaim the resource + result.slotDB.PutSyncPool() return result }