Skip to content

Commit 37590b2

Browse files
authored
eth/catalyst: fix params in failure log (#30131)
1 parent 10467ac commit 37590b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/catalyst/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl
335335
log.Warn("Final block not available in database", "hash", update.FinalizedBlockHash)
336336
return engine.STATUS_INVALID, engine.InvalidForkChoiceState.With(errors.New("final block not available in database"))
337337
} else if rawdb.ReadCanonicalHash(api.eth.ChainDb(), finalBlock.NumberU64()) != update.FinalizedBlockHash {
338-
log.Warn("Final block not in canonical chain", "number", block.NumberU64(), "hash", update.HeadBlockHash)
338+
log.Warn("Final block not in canonical chain", "number", finalBlock.NumberU64(), "hash", update.FinalizedBlockHash)
339339
return engine.STATUS_INVALID, engine.InvalidForkChoiceState.With(errors.New("final block not in canonical chain"))
340340
}
341341
// Set the finalized block

0 commit comments

Comments
 (0)