Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-head-block-number

This commit is contained in:
Eitan Seri-Levi
2026-05-28 12:42:13 +03:00
38 changed files with 1587 additions and 1033 deletions

View File

@@ -701,11 +701,9 @@ impl ProtoArray {
justified_balances: &JustifiedBalances,
spec: &ChainSpec,
) -> bool {
let reorg_threshold = calculate_committee_fraction::<E>(
justified_balances,
spec.reorg_head_weight_threshold.unwrap_or(20),
)
.unwrap_or(0);
let reorg_threshold =
calculate_committee_fraction::<E>(justified_balances, spec.reorg_head_weight_threshold)
.unwrap_or(0);
let head_weight = head_node
.attestation_score(PayloadStatus::Pending)