mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 23:08:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user