From 67c9a9c450b21e8fe4a6bf0746e84a6389212f10 Mon Sep 17 00:00:00 2001 From: brooks Date: Thu, 29 Feb 2024 15:17:19 -0500 Subject: [PATCH] Uses purge_all_bank_snapshots() --- ledger/src/bank_forks_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };