mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Remove dead code
This commit is contained in:
@@ -489,12 +489,10 @@ impl ProtoArray {
|
|||||||
.ok_or(Error::DeltaOverflow(parent_index))?;
|
.ok_or(Error::DeltaOverflow(parent_index))?;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// V17 child of a V29 parent (fork transition): treat as FULL
|
// This is a v17 node with a v17 parent.
|
||||||
// since V17 nodes always have execution payloads inline.
|
// There is no empty or full weight for v17 nodes, so nothing to propagate.
|
||||||
parent_delta.full_delta = parent_delta
|
// In the tree walk, the v17 nodes have an empty child with 0 weight, which
|
||||||
.full_delta
|
// wins by default (it is the only child).
|
||||||
.checked_add(delta)
|
|
||||||
.ok_or(Error::DeltaOverflow(parent_index))?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user