Skip to content

Commit

Permalink
Uses purge_all_bank_snapshots()
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Feb 29, 2024
1 parent e8c87e8 commit 67c9a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger/src/bank_forks_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ fn bank_forks_from_snapshot(
// snapshot expects. This would cause the node to crash again. To prevent that, purge all
// the bank snapshots here. In the above scenario, this will cause the node to load from a
// snapshot archive next time, which is safe.
snapshot_utils::purge_old_bank_snapshots(&snapshot_config.bank_snapshots_dir, 0, None);
snapshot_utils::purge_all_bank_snapshots(&snapshot_config.bank_snapshots_dir);

bank
};
Expand Down

0 comments on commit 67c9a9c

Please sign in to comment.