Implement backfill sync restart

This commit is contained in:
dapplion
2025-04-10 12:07:25 -03:00
parent f9d2c1d2d3
commit 8d9bcd966c
6 changed files with 116 additions and 29 deletions

View File

@@ -34,6 +34,10 @@ impl CGCUpdates {
.map_err(|e| format!("Updates list full: {e:?}"))
}
pub fn prune_updates_older_than(&mut self, slot: Slot) {
todo!("{slot}");
}
pub fn iter(&self) -> impl Iterator<Item = (Slot, u64)> + '_ {
std::iter::once((Slot::new(0), self.initial_value)).chain(self.updates.iter().copied())
}