From b2ee83931bf0ef1399e839d573b4f762983c1e78 Mon Sep 17 00:00:00 2001 From: cui Date: Thu, 23 Jul 2026 22:49:48 +0800 Subject: [PATCH] eth/catalyst: allow reorg depth equal to maxReorgDepth (#35391) The deep-reorg check used depth >= maxReorgDepth, rejecting reorgs at exactly the configured limit. Use > so a depth equal to maxReorgDepth is still accepted. --- eth/catalyst/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index e94dd2e21b..3be827fc0e 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -338,7 +338,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(ctx context.Context, update engine.Fo return valid(nil), nil } depth := api.eth.BlockChain().CurrentBlock().Number.Uint64() - block.NumberU64() - if api.maxReorgDepth > 0 && depth >= api.maxReorgDepth { + if api.maxReorgDepth > 0 && depth > api.maxReorgDepth { log.Warn("Refusing too deep reorg", "depth", depth, "head", update.HeadBlockHash) return engine.STATUS_INVALID, engine.TooDeepReorg.With(fmt.Errorf("reorg depth %d exceeds limit %d", depth, api.maxReorgDepth)) }