From 727535bcc9768c99589dcc60e8ee0f5f2807814b Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Thu, 2 Apr 2026 11:50:16 +1100 Subject: [PATCH] Remove spurious payload attestation condition --- consensus/fork_choice/src/fork_choice.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/consensus/fork_choice/src/fork_choice.rs b/consensus/fork_choice/src/fork_choice.rs index 2dbefc763f..0993ae95a3 100644 --- a/consensus/fork_choice/src/fork_choice.rs +++ b/consensus/fork_choice/src/fork_choice.rs @@ -199,9 +199,6 @@ pub enum InvalidPayloadAttestation { attestation_slot: Slot, current_slot: Slot, }, - /// A payload attestation votes payload_present for a block in the current slot, which is - /// invalid because the payload cannot be known yet. - PayloadPresentDuringSameSlot { slot: Slot }, /// One or more payload attesters are not part of the PTC. PayloadAttestationAttestersNotInPtc { attesting_indices_len: usize, @@ -1234,18 +1231,6 @@ where ); } - // A payload attestation voting payload_present for a block in the current slot is - // invalid: the payload cannot be known yet. This only applies to gossip attestations; - // payload attestations from blocks have already been validated by the block producer. - if matches!(is_from_block, AttestationFromBlock::False) - && self.fc_store.get_current_slot() == block.slot - && indexed_payload_attestation.data.payload_present - { - return Err(InvalidPayloadAttestation::PayloadPresentDuringSameSlot { - slot: block.slot, - }); - } - Ok(()) }