mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
core: simplify atomic store after writeBlockWithState #20798
This commit is contained in:
parent
1d3e5cb455
commit
9a06e129b8
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue