diff --git a/ledger/src/bank_forks_utils.rs b/ledger/src/bank_forks_utils.rs index cc5b196b39f454..17412c1801ac68 100644 --- a/ledger/src/bank_forks_utils.rs +++ b/ledger/src/bank_forks_utils.rs @@ -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 };