diff --git a/consensus/fork_choice/tests/tests.rs b/consensus/fork_choice/tests/tests.rs index 532dd7fc4b..b2a6cd5668 100644 --- a/consensus/fork_choice/tests/tests.rs +++ b/consensus/fork_choice/tests/tests.rs @@ -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() diff --git a/consensus/proto_array/src/proto_array.rs b/consensus/proto_array/src/proto_array.rs index 8e59071baf..81211690ff 100644 --- a/consensus/proto_array/src/proto_array.rs +++ b/consensus/proto_array/src/proto_array.rs @@ -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