From ba424168c5026bf2439f073bde3891a9e927d8a9 Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:56:41 -0400 Subject: [PATCH] staking: fix comment in `Uptime::missed_blocks` (#4662) 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 --- crates/core/component/stake/src/uptime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/component/stake/src/uptime.rs b/crates/core/component/stake/src/uptime.rs index 7795333139..2326f07953 100644 --- a/crates/core/component/stake/src/uptime.rs +++ b/crates/core/component/stake/src/uptime.rs @@ -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 + 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();