Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed Feb 16, 2024
1 parent c78aaf5 commit bbd466f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/src/advance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
true => penultimate_round.saturating_sub(1),
false => penultimate_round.saturating_sub(2),
};
// Get the previous committee lookback round.
let penultimate_committee_lookback_round =
previous_penultimate_round.saturating_sub(Committee::<N>::COMMITTEE_LOOKBACK_RANGE);
// Retrieve the committee lookback.
// Retrieve the previous committee lookback.
let previous_committee_lookback =
self.get_committee_for_round(penultimate_committee_lookback_round)?
.ok_or(anyhow!("Failed to fetch committee for round {penultimate_committee_lookback_round}"))?;
Expand Down

0 comments on commit bbd466f

Please sign in to comment.