Chain type field (#3790)

* Adding chain type field into get_status rpc

* formatting
This commit is contained in:
aglkm
2024-09-12 23:03:51 +03:00
committed by GitHub
parent 9a23cfe483
commit 01b25650e2
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -92,6 +92,7 @@ impl HTTPNodeClient {
t.reset().unwrap();
match self.send_json_request::<Status>("get_status", &serde_json::Value::Null) {
Ok(status) => {
writeln!(e, "Chain type: {}", status.chain).unwrap();
writeln!(e, "Protocol version: {:?}", status.protocol_version).unwrap();
writeln!(e, "User agent: {}", status.user_agent).unwrap();
writeln!(e, "Connections: {}", status.connections).unwrap();