Handle removing slots during account scans (#17471)
This commit is contained in:
@@ -75,6 +75,10 @@ impl Ancestors {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
|
||||
pub fn max_slot(&self) -> Slot {
|
||||
self.ancestors.max() - 1
|
||||
}
|
||||
}
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
|
Reference in New Issue
Block a user