invert default behavior of index hashing (#15689)
This commit is contained in:
parent
be35c1c1b7
commit
22d2bb9a9c
|
@ -1620,10 +1620,15 @@ pub fn main() {
|
|||
.long("accounts-db-test-hash-calculation")
|
||||
.help("Enables testing of hash calculation using stores in AccountsHashVerifier. This has a computational cost."),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("accounts_db_index_hashing")
|
||||
.long("accounts-db-index-hashing")
|
||||
.help("Enables the use of the index in hash calculation in AccountsHashVerifier/Accounts Background Service."),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("no_accounts_db_index_hashing")
|
||||
.long("no-accounts-db-index-hashing")
|
||||
.help("Disables the use of the index in hash calculation in AccountsHashVerifier/Accounts Background Service."),
|
||||
.help("This is obsolete. See --accounts-db-index-hashing. Disables the use of the index in hash calculation in AccountsHashVerifier/Accounts Background Service."),
|
||||
)
|
||||
.arg(
|
||||
// legacy nop argument
|
||||
|
@ -1864,7 +1869,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_db_use_index_hash_calculation: !matches.is_present("no_accounts_db_index_hashing"),
|
||||
accounts_db_use_index_hash_calculation: matches.is_present("accounts_db_index_hashing"),
|
||||
tpu_coalesce_ms,
|
||||
..ValidatorConfig::default()
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue