mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Deprecate some reorg-related CLI flags and read from spec (#9177)
- #9123 Co-Authored-By: Tan Chee Keong <tanck@sigmaprime.io> Co-Authored-By: chonghe <44791194+chong-he@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user