Cleanup and spec parity fixes

- Add missing payload attestation slot check: spec returns early when
  data.slot != block.slot (PTC votes only for assigned block)
- Remove dead ignored tests (need mock EL Gloas support to run)
- Remove unused new_with_gloas and inspect_queued_payload_attestations
- Remove gloas entries from bin.rs (not part of this PR)
- Collapse nested if in payload attestation error handling (clippy)
- Rename env -> envelope in load_parent
- Add TODO(gloas) for parent_head_hash in re-org path
- Remove head_payload_status from ForkchoiceUpdateParameters (lives on
  CachedHead, sourced from get_head return)
This commit is contained in:
dapplion
2026-03-25 23:07:45 -05:00
parent e676c33c92
commit c7670ede02
4 changed files with 10 additions and 139 deletions

View File

@@ -1698,10 +1698,9 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
indexed_payload_attestation,
AttestationFromBlock::True,
&ptc.0,
) {
if !matches!(e, ForkChoiceError::InvalidAttestation(_)) {
return Err(BlockError::BeaconChainError(Box::new(e.into())));
}
) && !matches!(e, ForkChoiceError::InvalidAttestation(_))
{
return Err(BlockError::BeaconChainError(Box::new(e.into())));
}
}
}