clarify that RollingBitField max is exclusive (#22947)
This commit is contained in:
committed by
GitHub
parent
a160fc30f2
commit
b2e475b5c4
@@ -86,7 +86,7 @@ impl Ancestors {
|
||||
}
|
||||
|
||||
pub fn max_slot(&self) -> Slot {
|
||||
self.ancestors.max() - 1
|
||||
self.ancestors.max_exclusive().saturating_sub(1)
|
||||
}
|
||||
}
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user