solana ping: add --blockhash and --print-timestamp (#13980)

* solana ping: add --blockhash and --print-timestamp

* fix typo in hash...
This commit is contained in:
Ryo Onodera
2020-12-07 21:10:50 +09:00
committed by GitHub
parent 9da3de5861
commit 26df122386
2 changed files with 82 additions and 10 deletions

View File

@@ -128,6 +128,8 @@ pub enum CliCommand {
interval: Duration,
count: Option<u64>,
timeout: Duration,
blockhash: Option<Hash>,
print_timestamp: bool,
},
ShowBlockProduction {
epoch: Option<Epoch>,
@@ -1570,7 +1572,18 @@ pub fn process_command(config: &CliConfig) -> ProcessResult {
interval,
count,
timeout,
} => process_ping(&rpc_client, config, *lamports, interval, count, timeout),
blockhash,
print_timestamp,
} => process_ping(
&rpc_client,
config,
*lamports,
interval,
count,
timeout,
blockhash,
*print_timestamp,
),
CliCommand::ShowBlockProduction { epoch, slot_limit } => {
process_show_block_production(&rpc_client, config, *epoch, *slot_limit)
}