From e4ce356952a335c4dfc3254225565bcf4d31a802 Mon Sep 17 00:00:00 2001 From: skoupidi Date: Wed, 11 Feb 2026 15:05:15 +0200 Subject: [PATCH] validator/consensus: check fork proposals are after the requested tip height before appending them in get_fork_proposals_after --- src/validator/consensus.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/validator/consensus.rs b/src/validator/consensus.rs index 21abc331c..b3a7b8fa1 100644 --- a/src/validator/consensus.rs +++ b/src/validator/consensus.rs @@ -385,7 +385,10 @@ impl Consensus { .unwrap() .get_blocks_by_hash(&self.forks[index].proposals)?; for block in blocks { - proposals.push(Proposal::new(block)); + // Add fork proposals after the requested one height + if block.header.height > existing_tips[0].header.height { + proposals.push(Proposal::new(block)); + } } Ok(proposals)