mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 14:28:37 +00:00
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:
@@ -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())));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user