mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
WriteForkchoiceHead for no-op FCUs (#4415)
* WriteForkchoiceHead for no-op FCUs * Flip WriteForkchoiceHead & safeAndFinalizedBlocksAreCanonical
This commit is contained in:
parent
77e2934647
commit
27d652b2a4
@ -260,6 +260,7 @@ func startHandlingForkChoice(
|
||||
if currentHeadHash == headerHash { // no-op
|
||||
log.Info(fmt.Sprintf("[%s] Fork choice no-op", s.LogPrefix()))
|
||||
cfg.hd.BeaconRequestList.Remove(requestId)
|
||||
rawdb.WriteForkchoiceHead(tx, forkChoice.HeadBlockHash)
|
||||
canonical, err := safeAndFinalizedBlocksAreCanonical(forkChoice, s, tx, cfg, requestStatus == engineapi.New)
|
||||
if err != nil {
|
||||
log.Warn(fmt.Sprintf("[%s] Fork choice err", s.LogPrefix()), "err", err)
|
||||
|
Loading…
Reference in New Issue
Block a user