Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Sep 2, 2024
1 parent 31e0d15 commit 68c7b77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/parallel_state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 68c7b77

Please sign in to comment.