fix cli args (#31804)

This commit is contained in:
Jeff Washington (jwash) 2023-05-25 09:47:00 -05:00 committed by GitHub
parent 8cb30d0693
commit aff9c03e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -1541,15 +1541,15 @@ fn main() {
.help("After 'verify' completes, run a final accounts hash calculation. Final hash calculation could race with accounts background service tasks and assert."),
)
.arg(
Arg::with_name("partitioned-epoch-rewards-compare-calculation")
.long("partitioned_epoch_rewards_compare_calculation")
Arg::with_name("partitioned_epoch_rewards_compare_calculation")
.long("partitioned-epoch-rewards-compare-calculation")
.takes_value(false)
.help("Do normal epoch rewards distribution, but also calculate rewards using the partitioned rewards code path and compare the resulting vote and stake accounts")
.hidden(hidden_unless_forced())
)
.arg(
Arg::with_name("partitioned-epoch-rewards-force-enable-single-slot")
.long("partitioned_epoch_rewards_force_enable_single_slot")
Arg::with_name("partitioned_epoch_rewards_force_enable_single_slot")
.long("partitioned-epoch-rewards-force-enable-single-slot")
.takes_value(false)
.help("Force the partitioned rewards distribution, but distribute all rewards in the first slot in the epoch. This should match consensus with the normal rewards distribution.")
.conflicts_with("partitioned_epoch_rewards_compare_calculation")

View File

@ -1244,15 +1244,15 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.help("Number of bins to divide the accounts index into"),
)
.arg(
Arg::with_name("partitioned-epoch-rewards-compare-calculation")
.long("partitioned_epoch_rewards_compare_calculation")
Arg::with_name("partitioned_epoch_rewards_compare_calculation")
.long("partitioned-epoch-rewards-compare-calculation")
.takes_value(false)
.help("Do normal epoch rewards distribution, but also calculate rewards using the partitioned rewards code path and compare the resulting vote and stake accounts")
.hidden(hidden_unless_forced())
)
.arg(
Arg::with_name("partitioned-epoch-rewards-force-enable-single-slot")
.long("partitioned_epoch_rewards_force_enable_single_slot")
Arg::with_name("partitioned_epoch_rewards_force_enable_single_slot")
.long("partitioned-epoch-rewards-force-enable-single-slot")
.takes_value(false)
.help("Force the partitioned rewards distribution, but distribute all rewards in the first slot in the epoch. This should match consensus with the normal rewards distribution.")
.conflicts_with("partitioned_epoch_rewards_compare_calculation")