Skip to content

Commit

Permalink
fix(consensus): skip building only for ancestor (#6442)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Feb 6, 2024
1 parent 9d9d7ee commit aac72f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/consensus/beacon/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aac72f4

Please sign in to comment.