Skip to content

Commit 7b368f2

Browse files
authored
Enables experimental accumulator hash by default (#6071)
1 parent 8409140 commit 7b368f2

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

ledger-tool/src/args.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ pub fn accounts_db_args<'a, 'b>() -> Box<[Arg<'a, 'b>]> {
126126
.takes_value(true)
127127
.possible_values(&["mmap", "file"])
128128
.help("Access account storages using this method"),
129-
Arg::with_name("accounts_db_experimental_accumulator_hash")
130-
.long("accounts-db-experimental-accumulator-hash")
131-
.help("Enables the experimental accumulator hash")
129+
Arg::with_name("no_accounts_db_experimental_accumulator_hash")
130+
.long("no-accounts-db-experimental-accumulator-hash")
131+
.help("Disables the experimental accumulator hash")
132132
.hidden(hidden_unless_forced()),
133133
Arg::with_name("accounts_db_verify_experimental_accumulator_hash")
134134
.long("accounts-db-verify-experimental-accumulator-hash")
@@ -387,8 +387,8 @@ pub fn get_accounts_db_config(
387387
create_ancient_storage,
388388
storage_access,
389389
scan_filter_for_shrinking,
390-
enable_experimental_accumulator_hash: arg_matches
391-
.is_present("accounts_db_experimental_accumulator_hash"),
390+
enable_experimental_accumulator_hash: !arg_matches
391+
.is_present("no_accounts_db_experimental_accumulator_hash"),
392392
verify_experimental_accumulator_hash: arg_matches
393393
.is_present("accounts_db_verify_experimental_accumulator_hash"),
394394
snapshots_use_experimental_accumulator_hash: arg_matches

validator/src/commands/run/args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,9 +1433,9 @@ pub fn add_args<'a>(app: App<'a, 'a>, default_args: &'a DefaultArgs) -> App<'a,
14331433
.hidden(hidden_unless_forced()),
14341434
)
14351435
.arg(
1436-
Arg::with_name("accounts_db_experimental_accumulator_hash")
1437-
.long("accounts-db-experimental-accumulator-hash")
1438-
.help("Enables the experimental accumulator hash")
1436+
Arg::with_name("no_accounts_db_experimental_accumulator_hash")
1437+
.long("no-accounts-db-experimental-accumulator-hash")
1438+
.help("Disables the experimental accumulator hash")
14391439
.hidden(hidden_unless_forced()),
14401440
)
14411441
.arg(

validator/src/commands/run/execute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ pub fn execute(
537537
.is_present("accounts_db_test_skip_rewrites"),
538538
storage_access,
539539
scan_filter_for_shrinking,
540-
enable_experimental_accumulator_hash: matches
541-
.is_present("accounts_db_experimental_accumulator_hash"),
540+
enable_experimental_accumulator_hash: !matches
541+
.is_present("no_accounts_db_experimental_accumulator_hash"),
542542
verify_experimental_accumulator_hash: matches
543543
.is_present("accounts_db_verify_experimental_accumulator_hash"),
544544
snapshots_use_experimental_accumulator_hash: matches

0 commit comments

Comments
 (0)