fn common_create_bank_snapshot_files(
        bank_snapshots_dir: &Path,
        min_slot: Slot,
        max_slot: Slot,
    ) {
        for slot in min_slot..max_slot {
            let snapshot_dir = get_bank_snapshots_dir(bank_snapshots_dir, slot);
            fs::create_dir_all(&snapshot_dir).unwrap();

            let snapshot_filename = get_snapshot_file_name(slot);
            let snapshot_path = snapshot_dir.join(snapshot_filename);
            File::create(snapshot_path).unwrap();
        }
    }
/// A test heler function that creates bank snapshot files
A test heler function that creates bank snapshot files
A test heler function that creates bank snapshot files
fn common_create_bank_snapshot_files(
        bank_snapshots_dir: &Path,
        min_slot: Slot,
        max_slot: Slot,
    ) {
        for slot in min_slot..max_slot {
            let snapshot_dir = get_bank_snapshots_dir(bank_snapshots_dir, slot);
            fs::create_dir_all(&snapshot_dir).unwrap();
            let snapshot_filename = get_snapshot_file_name(slot);
            let snapshot_path = snapshot_dir.join(snapshot_filename);
            File::create(snapshot_path).unwrap();
        }
    }
fn common_create_bank_snapshot_files ( bank_snapshots_dir : & Path , min_slot : Slot , max_slot : Slot , ) { for slot in min_slot .. max_slot { let snapshot_dir = get_bank_snapshots_dir ( bank_snapshots_dir , slot ) ; fs :: create_dir_all ( & snapshot_dir ) . unwrap ( ) ; let snapshot_filename = get_snapshot_file_name ( slot ) ; let snapshot_path = snapshot_dir . join ( snapshot_filename ) ; File :: create ( snapshot_path ) . unwrap ( ) ; } }
A test heler function that creates bank snapshot files
A test heler function that creates bank snapshot files
bank_snapshots_dir
&Path
min_slot
Slot
max_slot
Slot