a8bff33387
* 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(). |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |