fix(consensus): skip building only for ancestor (#6442)

This commit is contained in:
Roman Krasiuk
2024-02-06 12:38:26 +01:00
committed by GitHub
parent 9d9d7ee33e
commit aac72f4440

View File

@ -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,