eth/catalyst: simplify log

This commit is contained in:
Gary Rong 2025-06-18 14:44:22 +08:00
parent 13bd2b4371
commit 0e69eb6322

View file

@ -283,7 +283,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl
// that should be fixed, not papered over. // that should be fixed, not papered over.
header := api.remoteBlocks.get(update.HeadBlockHash) header := api.remoteBlocks.get(update.HeadBlockHash)
if header == nil { if header == nil {
log.Warn("Forkchoice requested unknown head, trying to retrieve from network", "hash", update.HeadBlockHash) log.Warn("Fetching the unknown forkchoice head from network", "hash", update.HeadBlockHash)
retrievedHead, err := api.eth.Downloader().GetHeader(update.HeadBlockHash) retrievedHead, err := api.eth.Downloader().GetHeader(update.HeadBlockHash)
if err != nil { if err != nil {
log.Warn("Could not retrieve unknown head from peers") log.Warn("Could not retrieve unknown head from peers")