We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fbacc commit 86a1313Copy full SHA for 86a1313
1 file changed
rpc-client/src/subcommands/network_subcommands.rs
@@ -17,6 +17,9 @@ pub enum NetworkCommand {
17
#[clap(short, long)]
18
count: bool,
19
},
20
+
21
+ /// Returns a list of known peers (peer ID and its stored information).
22
+ AddressBook {},
23
}
24
25
#[async_trait]
@@ -33,6 +36,9 @@ impl HandleSubcommand for NetworkCommand {
33
36
println!("{:#?}", client.network.get_peer_list().await?);
34
37
35
38
39
+ NetworkCommand::AddressBook {} => {
40
+ println!("{:#?}", client.network.get_address_book().await?);
41
+ }
42
43
Ok(client)
44
0 commit comments