mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
@@ -149,7 +149,7 @@ impl ProtoArray {
|
||||
/// - Update the node's weight with the corresponding delta.
|
||||
/// - Back-propagate each node's delta to its parents delta.
|
||||
/// - Compare the current node with the parents best-child, updating it if the current node
|
||||
/// should become the best child.
|
||||
/// should become the best child.
|
||||
/// - If required, update the parents best-descendant with the current node or its best-descendant.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn apply_score_changes<E: EthSpec>(
|
||||
|
||||
@@ -896,7 +896,7 @@ impl ProtoArrayForkChoice {
|
||||
///
|
||||
/// - If a value in `indices` is greater to or equal to `indices.len()`.
|
||||
/// - If some `Hash256` in `votes` is not a key in `indices` (except for `Hash256::zero()`, this is
|
||||
/// always valid).
|
||||
/// always valid).
|
||||
fn compute_deltas(
|
||||
indices: &HashMap<Hash256, usize>,
|
||||
votes: &mut ElasticList<VoteTracker>,
|
||||
|
||||
Reference in New Issue
Block a user