From 9a06e129b842502ac3a41fcddfb5eb575812a0ed Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 18 Apr 2025 19:38:44 +0800 Subject: [PATCH] core: simplify atomic store after writeBlockWithState #20798 --- core/blockchain.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 82f8a098ab..aa9ebd316d 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1766,11 +1766,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, [] // Write the block to the chain and get the status. status, err := bc.writeBlockWithState(block, receipts, statedb, tradingState, lendingState) t3 := time.Now() + atomic.StoreUint32(&followupInterrupt, 1) if err != nil { - atomic.StoreUint32(&followupInterrupt, 1) return it.index, events, coalescedLogs, err } - atomic.StoreUint32(&followupInterrupt, 1) // Update the metrics subsystem with all the measurements accountReadTimer.Update(statedb.AccountReads)