Handle removing slots during account scans (#17471)

This commit is contained in:
carllin
2021-06-14 21:04:01 -07:00
committed by GitHub
parent 471b34132e
commit ccc013e134
15 changed files with 934 additions and 319 deletions

View File

@@ -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 {