Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Actually support missing value....
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Mar 22, 2023
1 parent 92d745d commit 14c0f88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1247,16 +1247,18 @@ fn load_bank_forks(
accounts_update_notifier,
&Arc::default(),
);
let block_verification_method = value_t_or_exit!(
let block_verification_method = value_t!(
arg_matches,
"block_verification_method",
BlockVerificationMethod
);
let block_production_method = value_t_or_exit!(
)
.unwrap_or_default();
let block_production_method = value_t!(
arg_matches,
"block_production_method",
BlockProductionMethod
);
)
.unwrap_or_default();
info!(
"Using: block-verification-method: {}, block-production-method: {}",
block_verification_method, block_production_method
Expand Down
10 changes: 6 additions & 4 deletions validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1524,16 +1524,18 @@ pub fn main() {
}

configure_banking_trace_dir_byte_limit(&mut validator_config, &matches);
validator_config.block_verification_method = value_t_or_exit!(
validator_config.block_verification_method = value_t!(
matches,
"block_verification_method",
BlockVerificationMethod
);
validator_config.block_production_method = value_t_or_exit!(
)
.unwrap_or_default();
validator_config.block_production_method = value_t!(
matches, // comment to align formatting...
"block_production_method",
BlockProductionMethod
);
)
.unwrap_or_default();

validator_config.ledger_column_options = LedgerColumnOptions {
compression_type: match matches.value_of("rocksdb_ledger_compression") {
Expand Down

0 comments on commit 14c0f88

Please sign in to comment.