From 31ce84734792539fd130a267f1b1e96fc827d6ed Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Sun, 17 Mar 2024 19:05:47 +0800 Subject: [PATCH] mod error msg for parent check --- eth/catalyst/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index d154d794be..0748e46d85 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -299,7 +299,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl return engine.ForkChoiceResponse{PayloadStatus: engine.INVALID_TERMINAL_BLOCK, PayloadID: nil}, nil } if block.NumberU64() > 0 && ptd.Cmp(ttd) >= 0 { - log.Error("Parent block is already post-ttd", "number", block.NumberU64(), "hash", update.HeadBlockHash, "diff", block.Difficulty(), "age", common.PrettyAge(time.Unix(int64(block.Time()), 0))) + log.Error("A block with td>=TerminalTotalDifficulty and difficulty>0 must have a parent block with td 0 && gptd != nil && gptd.Cmp(ttd) >= 0 { - log.Error("Ignoring pre-merge parent block", "number", params.Number, "hash", params.BlockHash, "td", ptd, "ttd", ttd) + log.Error("A block with td>=TerminalTotalDifficulty and difficulty>0 must have a parent block with td