diff --git a/docs/src/developing/test-validator.md b/docs/src/developing/test-validator.md index 6168940d11..deb9f75b3c 100644 --- a/docs/src/developing/test-validator.md +++ b/docs/src/developing/test-validator.md @@ -37,7 +37,9 @@ See [Appendix I](#appendix-i-status-output) for details Ledger location: test-ledger Log: test-ledger/validator.log Identity: EPhgPANa5Rh2wa4V2jxt7YbtWa3Uyw4sTeZ13cQjDDB8 +Genesis Hash: 4754oPEMhAKy14CZc8GzQUP93CB4ouELyaTs4P8ittYn Version: 1.6.7 +Shred Version: 13286 Gossip Address: 127.0.0.1:1024 TPU Address: 127.0.0.1:1027 JSON RPC URL: http://127.0.0.1:8899 @@ -59,8 +61,10 @@ solana config set --url http://127.0.0.1:8899 #### Verify the CLI Tool Suite configuration ``` -solana cluster-version +solana genesis-hash ``` +* **NOTE:** The result should match the `Genesis Hash:` field in the +`solana-test-validator` status output #### Check the wallet balance ``` diff --git a/validator/src/dashboard.rs b/validator/src/dashboard.rs index e751699405..e4a0728b28 100644 --- a/validator/src/dashboard.rs +++ b/validator/src/dashboard.rs @@ -87,13 +87,20 @@ impl Dashboard { continue; } }; - println_name_value("Identity:", &identity.to_string()); + + if let Ok(genesis_hash) = rpc_client.get_genesis_hash() { + println_name_value("Genesis Hash:", &genesis_hash.to_string()); + } + if let Some(contact_info) = get_contact_info(&rpc_client, &identity) { println_name_value( "Version:", &contact_info.version.unwrap_or_else(|| "?".to_string()), ); + if let Some(shred_version) = contact_info.shred_version { + println_name_value("Shred Version:", &shred_version.to_string()); + } if let Some(gossip) = contact_info.gossip { println_name_value("Gossip Address:", &gossip.to_string()); }