This commit is contained in:
hopinheimer
2026-03-02 13:27:45 -05:00
parent e68cc03114
commit 6f6da5b393
5 changed files with 10 additions and 20 deletions

View File

@@ -1661,12 +1661,7 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
.get_indexed_attestation(&state, attestation)
.map_err(|e| BlockError::PerBlockProcessingError(e.into_with_index(i)))?;
match fork_choice.on_attestation(
current_slot,
indexed_attestation,
true,
&chain.spec,
) {
match fork_choice.on_attestation(current_slot, indexed_attestation, true, &chain.spec) {
Ok(()) => Ok(()),
// Ignore invalid attestations whilst importing attestations from a block. The
// block might be very old and therefore the attestations useless to fork choice.