Add --follow option to catchup command to allow for easy ongoing monitoring between two nodes

This commit is contained in:
Michael Vines
2020-04-02 11:05:29 -07:00
parent 1078c86100
commit 303a1207c1
2 changed files with 14 additions and 3 deletions

View File

@ -173,6 +173,7 @@ pub enum CliCommand {
Catchup {
node_pubkey: Pubkey,
node_json_rpc_url: Option<String>,
follow: bool,
},
ClusterVersion,
CreateAddressWithSeed {
@ -1593,7 +1594,8 @@ pub fn process_command(config: &CliConfig) -> ProcessResult {
CliCommand::Catchup {
node_pubkey,
node_json_rpc_url,
} => process_catchup(&rpc_client, node_pubkey, node_json_rpc_url),
follow,
} => process_catchup(&rpc_client, node_pubkey, node_json_rpc_url, *follow),
CliCommand::ClusterVersion => process_cluster_version(&rpc_client),
CliCommand::CreateAddressWithSeed {
from_pubkey,