cli for num account index bins (#19085)
This commit is contained in:
committed by
GitHub
parent
3bdadb3930
commit
e91988c977
@@ -10,8 +10,8 @@ use {
|
||||
solana_clap_utils::{
|
||||
input_parsers::{keypair_of, keypairs_of, pubkey_of, value_of},
|
||||
input_validators::{
|
||||
is_keypair, is_keypair_or_ask_keyword, is_parsable, is_pubkey, is_pubkey_or_keypair,
|
||||
is_slot,
|
||||
is_bin, is_keypair, is_keypair_or_ask_keyword, is_parsable, is_pubkey,
|
||||
is_pubkey_or_keypair, is_slot,
|
||||
},
|
||||
keypair::SKIP_SEED_PHRASE_VALIDATION_ARG,
|
||||
},
|
||||
@@ -1820,6 +1820,14 @@ pub fn main() {
|
||||
.help("Enables faster starting of validators by skipping shrink. \
|
||||
This option is for use during testing."),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("accounts_index_bins")
|
||||
.long("accounts-index-bins")
|
||||
.value_name("BINS")
|
||||
.validator(is_bin)
|
||||
.takes_value(true)
|
||||
.help("Number of bins to divide the accounts index into"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("accounts_db_test_hash_calculation")
|
||||
.long("accounts-db-test-hash-calculation")
|
||||
@@ -2389,6 +2397,7 @@ pub fn main() {
|
||||
account_indexes,
|
||||
accounts_db_caching_enabled: !matches.is_present("no_accounts_db_caching"),
|
||||
accounts_db_test_hash_calculation: matches.is_present("accounts_db_test_hash_calculation"),
|
||||
accounts_index_bins: value_t!(matches, "accounts_index_bins", usize).ok(),
|
||||
accounts_db_skip_shrink: matches.is_present("accounts_db_skip_shrink"),
|
||||
accounts_db_use_index_hash_calculation: matches.is_present("accounts_db_index_hashing"),
|
||||
tpu_coalesce_ms,
|
||||
|
Reference in New Issue
Block a user