The node-list-connected-peers
command in Mintlayer is used to list all the peers currently connected to your node. This command provides detailed information about each peer, including their IDs, addresses, roles, ban scores, user agents, software versions, and ping statistics. It's a valuable tool for monitoring your node's network health and connectivity.
node-list-connected-peers
-h, --help
: Displays help information about the node-list-connected-peers
command.Listing Connected Peers:
Executing the command:
node-list-connected-peers
will provide a list of all connected peers along with their details. An example output might look like this:
[
ConnectedPeer {
peer_id: PeerId(1),
address: SocketAddress(192.168.150.140:13031),
peer_role: OutboundBlockRelay,
ban_score: 0,
user_agent: "MintlayerCore",
software_version: "0.2.0",
ping_wait: None,
ping_last: Some(123),
ping_min: Some(121),
},
ConnectedPeer {
peer_id: PeerId(2),
...
},
...
]
This output provides comprehensive information about each peer, including their peer ID, network address, role in the network, ban score, user agent, software version, and ping statistics.