Skip to content

Commit efaab87

Browse files
committed
fix test
1 parent b911048 commit efaab87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

beacon_node/beacon_chain/src/attestation_verification.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,6 @@ impl<'a, T: BeaconChainTypes> IndexedUnaggregatedAttestation<'a, T> {
858858
// [New in Electra:EIP7549]
859859
verify_committee_index(attestation)?;
860860

861-
// Do not process an attestation that doesn't descend from the finalized root.
862-
verify_attestation_is_finalized_checkpoint_or_descendant(attestation, chain)?;
863-
864861
// Attestations must be for a known block. If the block is unknown, we simply drop the
865862
// attestation and do not delay consideration for later.
866863
//
@@ -871,6 +868,9 @@ impl<'a, T: BeaconChainTypes> IndexedUnaggregatedAttestation<'a, T> {
871868
// Check the attestation target root is consistent with the head root.
872869
verify_attestation_target_root::<T::EthSpec>(&head_block, attestation)?;
873870

871+
// Do not process an attestation that doesn't descend from the finalized root.
872+
verify_attestation_is_finalized_checkpoint_or_descendant(attestation, chain)?;
873+
874874
Ok(())
875875
}
876876

0 commit comments

Comments
 (0)