Validator monitor now displays the max retransmit slot
This commit is contained in:
parent
2a1639836a
commit
aac18d7564
|
@ -117,6 +117,7 @@ impl Dashboard {
|
||||||
|
|
||||||
match get_validator_stats(&rpc_client, &identity) {
|
match get_validator_stats(&rpc_client, &identity) {
|
||||||
Ok((
|
Ok((
|
||||||
|
max_retransmit_slot,
|
||||||
processed_slot,
|
processed_slot,
|
||||||
confirmed_slot,
|
confirmed_slot,
|
||||||
finalized_slot,
|
finalized_slot,
|
||||||
|
@ -137,7 +138,7 @@ impl Dashboard {
|
||||||
};
|
};
|
||||||
|
|
||||||
progress_bar.set_message(&format!(
|
progress_bar.set_message(&format!(
|
||||||
"{}{}| \
|
"{}{}{}| \
|
||||||
Processed Slot: {} | Confirmed Slot: {} | Finalized Slot: {} | \
|
Processed Slot: {} | Confirmed Slot: {} | Finalized Slot: {} | \
|
||||||
Snapshot Slot: {} | \
|
Snapshot Slot: {} | \
|
||||||
Transactions: {} | {}",
|
Transactions: {} | {}",
|
||||||
|
@ -147,6 +148,11 @@ impl Dashboard {
|
||||||
} else {
|
} else {
|
||||||
format!("| {} ", style(health).bold().red())
|
format!("| {} ", style(health).bold().red())
|
||||||
},
|
},
|
||||||
|
if max_retransmit_slot == 0 {
|
||||||
|
"".to_string()
|
||||||
|
} else {
|
||||||
|
format!("| Max Slot: {} ", max_retransmit_slot)
|
||||||
|
},
|
||||||
processed_slot,
|
processed_slot,
|
||||||
confirmed_slot,
|
confirmed_slot,
|
||||||
finalized_slot,
|
finalized_slot,
|
||||||
|
@ -238,10 +244,11 @@ fn get_contact_info(rpc_client: &RpcClient, identity: &Pubkey) -> Option<RpcCont
|
||||||
fn get_validator_stats(
|
fn get_validator_stats(
|
||||||
rpc_client: &RpcClient,
|
rpc_client: &RpcClient,
|
||||||
identity: &Pubkey,
|
identity: &Pubkey,
|
||||||
) -> client_error::Result<(Slot, Slot, Slot, u64, Sol, String)> {
|
) -> client_error::Result<(Slot, Slot, Slot, Slot, u64, Sol, String)> {
|
||||||
let processed_slot = rpc_client.get_slot_with_commitment(CommitmentConfig::processed())?;
|
|
||||||
let confirmed_slot = rpc_client.get_slot_with_commitment(CommitmentConfig::confirmed())?;
|
|
||||||
let finalized_slot = rpc_client.get_slot_with_commitment(CommitmentConfig::finalized())?;
|
let finalized_slot = rpc_client.get_slot_with_commitment(CommitmentConfig::finalized())?;
|
||||||
|
let confirmed_slot = rpc_client.get_slot_with_commitment(CommitmentConfig::confirmed())?;
|
||||||
|
let processed_slot = rpc_client.get_slot_with_commitment(CommitmentConfig::processed())?;
|
||||||
|
let max_retransmit_slot = rpc_client.get_max_retransmit_slot()?;
|
||||||
let transaction_count =
|
let transaction_count =
|
||||||
rpc_client.get_transaction_count_with_commitment(CommitmentConfig::processed())?;
|
rpc_client.get_transaction_count_with_commitment(CommitmentConfig::processed())?;
|
||||||
let identity_balance = rpc_client
|
let identity_balance = rpc_client
|
||||||
|
@ -270,6 +277,7 @@ fn get_validator_stats(
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok((
|
Ok((
|
||||||
|
max_retransmit_slot,
|
||||||
processed_slot,
|
processed_slot,
|
||||||
confirmed_slot,
|
confirmed_slot,
|
||||||
finalized_slot,
|
finalized_slot,
|
||||||
|
|
Loading…
Reference in New Issue