addnode
addnode "node" "command"
Attempts to either add or remove a node from the addnode list, or attempts a one-time connection to a node.
Nodes added through addnode (or using the -connect
option) are protected from DoS disconnections and are not required to be full nodes or support SegWit like other outbound peers. However, synchronization will not occur from such peers.
Argument #1 – node
Type: string, required
The node (see getpeerinfo for nodes)
Argument #2 – command
Type: string, required
Options:
-
'add'
: Add a node to the list. -
'remove'
: Remove a node from the list. -
'onetry'
: Attempt a one-time connection to the node.