Skip to content

Commit 21478e5

Browse files
committed
remove unneeded error variant
1 parent efaab87 commit 21478e5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

beacon_node/beacon_chain/src/attestation_verification.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,16 +266,6 @@ pub enum Error {
266266
attestation: Hash256,
267267
expected: Option<Hash256>,
268268
},
269-
/// The attestation conflicts with finalization, no need to propagate.
270-
///
271-
/// ## Peer scoring
272-
///
273-
/// It's unclear if this attestation is valid, but it conflicts with finality and shouldn't be
274-
/// propogated.
275-
NotFinalizedDescendant {
276-
attestation_block_root: Hash256,
277-
attestation_slot: Slot,
278-
},
279269
/// There was an error whilst processing the attestation. It is not known if it is valid or invalid.
280270
///
281271
/// ## Peer scoring
@@ -1391,9 +1381,8 @@ fn verify_attestation_is_finalized_checkpoint_or_descendant<T: BeaconChainTypes>
13911381
{
13921382
Ok(())
13931383
} else {
1394-
Err(Error::NotFinalizedDescendant {
1384+
Err(Error::HeadBlockFinalized {
13951385
attestation_block_root,
1396-
attestation_slot: attestation.data().slot,
13971386
})
13981387
}
13991388
}

0 commit comments

Comments
 (0)