Fix CI: collapse nested if, ignore payload attestation test

- Collapse nested if in build_children_index (clippy::collapsible_if)
- Ignore payload_attestation_for_previous_slot_is_accepted_at_next_slot
  — test uses pre-Gloas blocks (V17) but on_payload_attestation requires
  V29 nodes. Needs mock EL Gloas block support.
This commit is contained in:
dapplion
2026-03-25 20:33:17 -05:00
parent f31a93697e
commit a34b7c99dc
2 changed files with 8 additions and 4 deletions

View File

@@ -1005,6 +1005,10 @@ async fn invalid_attestation_payload_during_same_slot() {
}
/// A payload attestation for block A at slot S should be accepted when processed at slot S+1.
/// TODO(gloas): un-ignore once mock EL supports Gloas blocks. Payload
/// attestations require V29 nodes which need Gloas block production.
/// https://github.com/sigp/lighthouse/issues/9025
#[ignore]
#[tokio::test]
async fn payload_attestation_for_previous_slot_is_accepted_at_next_slot() {
let test = ForkChoiceTest::new()

View File

@@ -1199,10 +1199,10 @@ impl ProtoArray {
{
continue;
}
if let Some(parent) = node.parent() {
if parent < children.len() {
children[parent].push(i);
}
if let Some(parent) = node.parent()
&& parent < children.len()
{
children[parent].push(i);
}
}
children