solana/local-cluster
Xiang Zhu e74bc4e2e7
Add a filter_by_type param for purge_old_bank_snapshots (#31191)
* Add a type_select param for purge_old_bank_snapshots

* Use flags to make the function calls more readable

* Remove the extra purge calls

* replace select_type with filter_by_type

* Add test

* Use matches

* Fix CI test on reference

* use match and call do_purge once

* Let bank_snapshots_dir be TempDir

* remove account_paths in the test

* replace bank with _bank

* Remove create_snapshot_dirs_for_tests, will take the lastest from master

* Fix merge errors
2023-04-17 16:16:41 -07:00
..
src Refactor fault hash injection into lambda (#31093) 2023-04-07 17:50:21 -05:00
tests Add a filter_by_type param for purge_old_bank_snapshots (#31191) 2023-04-17 16:16:41 -07:00
.gitignore
Cargo.toml chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00