Skip to content

Commit

Permalink
staking: fix comment in Uptime::missed_blocks (#4662)
Browse files Browse the repository at this point in the history
Fix on #4279.

## Describe your changes

## Issue ticket number and link

## Checklist before requesting a review

- [X] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > comment fix
  • Loading branch information
dynst committed Jul 3, 2024
1 parent c6f476b commit ba42416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/component/stake/src/uptime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Uptime {

/// Enumerates the missed blocks over the window in terms of absolute block height.
pub fn missed_blocks(&self) -> impl Iterator<Item = u64> + DoubleEndedIterator + '_ {
// The height of the next block to be recorded (not yet recorded):
// The height of the latest block that's been recorded:
let current_height = self.as_of_block_height;
// The length of the window of blocks being recorded:
let window_len = self.signatures.len();
Expand Down

0 comments on commit ba42416

Please sign in to comment.