cache account hash info (#19426)

* cache account hash info

* ledger_path -> accounts_hash_cache_path
This commit is contained in:
Jeff Washington (jwash)
2021-09-13 20:39:26 -05:00
committed by GitHub
parent dca49a614f
commit b57e86abf2
9 changed files with 737 additions and 48 deletions

View File

@ -1893,8 +1893,10 @@ fn main() {
.ok()
.map(|bins| AccountsIndexConfig { bins: Some(bins) });
let accounts_db_config =
accounts_index_config.map(|x| AccountsDbConfig { index: Some(x) });
let accounts_db_config = Some(AccountsDbConfig {
index: accounts_index_config,
accounts_hash_cache_path: Some(ledger_path.clone()),
});
let process_options = ProcessOptions {
dev_halt_at_slot: value_t!(arg_matches, "halt_at_slot", Slot).ok(),