pub(super) async fn run_backup_task(
non_finalized_state_receiver: WatchReceiver<NonFinalizedState>,
backup_dir_path: PathBuf,
)
Expand description
Updates the non-finalized state backup cache whenever the non-finalized state changes, deleting any outdated backup files and writing any blocks that are in the non-finalized state but missing in the backup cache.