CLI: Limit stake-history output by default (#16673)

(cherry picked from commit f91de6a84d)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2021-04-20 11:36:15 +00:00
committed by GitHub
parent 558a46f5d5
commit cc81830f13
2 changed files with 36 additions and 6 deletions

View File

@@ -257,6 +257,7 @@ pub enum CliCommand {
},
ShowStakeHistory {
use_lamports_unit: bool,
limit_results: usize,
},
ShowStakeAccount {
pubkey: Pubkey,
@@ -1661,9 +1662,10 @@ pub fn process_command(config: &CliConfig) -> ProcessResult {
*use_lamports_unit,
*with_rewards,
),
CliCommand::ShowStakeHistory { use_lamports_unit } => {
process_show_stake_history(&rpc_client, config, *use_lamports_unit)
}
CliCommand::ShowStakeHistory {
use_lamports_unit,
limit_results,
} => process_show_stake_history(&rpc_client, config, *use_lamports_unit, *limit_results),
CliCommand::StakeAuthorize {
stake_account_pubkey,
ref new_authorizations,