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

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

* fix typo in hash...

(cherry picked from commit 26df122386)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-07 13:34:43 +00:00
committed by GitHub
parent a0c1e4a6e2
commit aeb6ef3969
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>,
@@ -1556,7 +1558,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)
}