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

@@ -156,6 +156,10 @@ impl<E: EthSpec> NetworkGlobals<E> {
.add_latest_update((update_start_slot, cgc))
}
pub fn prune_cgc_updates_older_than(&self, slot: Slot) {
self.cgc_updates.write().prune_updates_older_than(slot);
}
pub fn dump_cgc_updates(&self) -> CGCUpdates {
self.cgc_updates.read().clone()
}