The node-disconnect-peer
command in Mintlayer is used to manually disconnect a specific peer from your node. This command can be useful for managing your node's network connections, particularly for severing connections with peers that are unreliable or untrustworthy.
node-disconnect-peer <PEER_ID>
<PEER_ID>
: The identifier of the peer you wish to disconnect from your node. The PEER_ID is typically a number assigned to each connected peer for identification within the node.-h, --help
: Displays help information about the node-disconnect-peer
command.Disconnecting a Remote Peer:
To disconnect a peer with a specific PEER_ID, execute the command with the ID of the peer. For example:
node-disconnect-peer 18
Replace 18
with the actual PEER_ID of the peer you want to disconnect.
Upon successful execution, you should receive a confirmation:
Success
This indicates that the peer with the specified ID has been successfully disconnected from your node.