From aac72f4440ec13c3461166fa991130e98f4ae6a1 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Tue, 6 Feb 2024 12:38:26 +0100 Subject: [PATCH] fix(consensus): skip building only for ancestor (#6442) --- crates/consensus/beacon/src/engine/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/consensus/beacon/src/engine/mod.rs b/crates/consensus/beacon/src/engine/mod.rs index d2643767e2d8..231e8579fbda 100644 --- a/crates/consensus/beacon/src/engine/mod.rs +++ b/crates/consensus/beacon/src/engine/mod.rs @@ -474,7 +474,10 @@ where // and deemed `VALID`. In the case of such an event, client software MUST return // `{payloadStatus: {status: VALID, latestValidHash: forkchoiceState.headBlockHash, // validationError: null}, payloadId: null}` - attrs.take(); + if self.blockchain.canonical_tip() != header.num_hash() { + attrs.take(); + } + debug!( target: "consensus::engine", fcu_head_num=?header.number,