solana/core
steviez a8bff33387
Make backup_and_clear_blockstore() honor ValidatorConfig options (#30538)
* Add helper function to create BlockstoreOptions from ValidatorConfig

* Make backup_and_clear_blockstore() honor ValidatorConfig options

backup_and_clear_blockstore() opens a Blockstore session; however, it
is currently using Blockstore::open(). This Blockstore method uses
BlockstoreOption::default() under the hood. As a result, any validator
args that adjust Blockstore settings are not considered in
backup_and_clear_blockstore().

This is especially problematic if the non-default value of
--rocksdb-shred-compaction is being used. In this case,
backup_and_clear_blockstore() was opening the wrong directory and
incorrectly finding an empty ledger.

This change plumbs any blockstore configuration to
backup_and_clear_blockstore().
2023-03-04 21:09:41 -08:00
..
benches BankingStage Refactor: Separate Consumer Module (#30238) 2023-02-15 08:52:13 -08:00
src Make backup_and_clear_blockstore() honor ValidatorConfig options (#30538) 2023-03-04 21:09:41 -08:00
tests Uses a channel for AHV -> SPS (#30406) 2023-02-22 03:36:29 +00:00
.gitignore
Cargo.toml chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
build.rs