Peer
Connect/disconnect peers and inspect connectivity.
Peers are Lightning P2P connections. You typically connect peers before opening channels or paying invoices.
List peers
rgbldk peer lsIf you need to copy a full node_id from a table, add --no-truncate.
Connect a peer
You need:
- the other node’s
node_id(get it withrgbldk --output json --pretty node id) - the other node’s P2P listen address (get it with
rgbldk node listen)
rgbldk peer connect <NODE_ID> <P2P_HOST_PORT> --persistWhat you should see:
Peer connected.--persist means the daemon will try to reconnect automatically.
Disconnect a peer
rgbldk peer disconnect <NODE_ID>