Skip to content

Commit 2896c6c

Browse files
committed
doc: update addnode rpc help
1 parent 585cbe2 commit 2896c6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rpc/net.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ static RPCHelpMan addnode()
265265
"\nAttempts to add or remove a node from the addnode list.\n"
266266
"Or try a connection to a node once.\n"
267267
"Nodes added using addnode (or -connect) are protected from DoS disconnection and are not required to be\n"
268-
"full nodes/support SegWit as other outbound peers are (though such peers will not be synced from).\n",
268+
"full nodes/support SegWit as other outbound peers are (though such peers will not be synced from).\n" +
269+
strprintf("Addnode connections are limited to %u at a time", MAX_ADDNODE_CONNECTIONS) +
270+
" and are counted separately from the -maxconnections limit.\n",
269271
{
270272
{"node", RPCArg::Type::STR, RPCArg::Optional::NO, "The node (see getpeerinfo for nodes)"},
271273
{"command", RPCArg::Type::STR, RPCArg::Optional::NO, "'add' to add a node to the list, 'remove' to remove a node from the list, 'onetry' to try a connection to the node once"},

0 commit comments

Comments
 (0)