This commit is contained in:
Felipe Andrade 2023-05-09 19:11:29 -07:00
parent cfb26e6a8a
commit 651b526c50

@ -481,7 +481,7 @@ func (cp *ConsensusPoller) setBackendState(be *Backend, peerCount uint64, blockN
bs.peerCount = peerCount
bs.latestBlockNumber = blockNumber
bs.latestBlockHash = blockHash
updateDelay = time.Now().Sub(bs.lastUpdate)
updateDelay = time.Since(bs.lastUpdate)
bs.lastUpdate = time.Now()
bs.backendStateMux.Unlock()
return