Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/net.cpp
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() != 2 || | ||||
(strCommand != "onetry" && strCommand != "add" && | (strCommand != "onetry" && strCommand != "add" && | ||||
strCommand != "remove")) { | strCommand != "remove")) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"addnode \"node\" \"add|remove|onetry\"\n" | "addnode \"node\" \"add|remove|onetry\"\n" | ||||
"\nAttempts add or remove a node from the addnode list.\n" | "\nAttempts add or remove a node from the addnode list.\n" | ||||
"Or try a connection to a node once.\n" | "Or try a connection to a node once.\n" | ||||
"Nodes added using addnode (or -connect) are protected from DoS " | "Nodes added using addnode (or -connect) are protected from DoS " | ||||
"disconnection and are not required to be\n" | "disconnection and are not required to be\n" | ||||
"full nodes/support SegWit as other outbound peers are (though " | "full nodes as other outbound peers are (though " | ||||
"such peers will not be synced from).\n" | "such peers will not be synced from).\n" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. \"node\" (string, required) The node (see getpeerinfo for " | "1. \"node\" (string, required) The node (see getpeerinfo for " | ||||
"nodes)\n" | "nodes)\n" | ||||
"2. \"command\" (string, required) 'add' to add a node to the " | "2. \"command\" (string, required) 'add' to add a node to the " | ||||
"list, 'remove' to remove a node from the list, 'onetry' to try a " | "list, 'remove' to remove a node from the list, 'onetry' to try a " | ||||
"connection to the node once\n" | "connection to the node once\n" | ||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
▲ Show 20 Lines • Show All 543 Lines • Show Last 20 Lines |