|
|
|
@ -345,8 +345,8 @@ static RPCHelpMan addconnection()
|
|
|
|
|
{ RPCResult::Type::STR, "connection_type", "Type of connection opened." },
|
|
|
|
|
}},
|
|
|
|
|
RPCExamples{
|
|
|
|
|
HelpExampleCli("addconnection", "\"192.168.0.6:8333\" \"outbound-full-relay\"")
|
|
|
|
|
+ HelpExampleRpc("addconnection", "\"192.168.0.6:8333\" \"outbound-full-relay\"")
|
|
|
|
|
HelpExampleCli("addconnection", "\"192.168.0.6:9333\" \"outbound-full-relay\"")
|
|
|
|
|
+ HelpExampleRpc("addconnection", "\"192.168.0.6:9333\" \"outbound-full-relay\"")
|
|
|
|
|
},
|
|
|
|
|
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
|
|
|
|
{
|
|
|
|
@ -397,9 +397,9 @@ static RPCHelpMan disconnectnode()
|
|
|
|
|
},
|
|
|
|
|
RPCResult{RPCResult::Type::NONE, "", ""},
|
|
|
|
|
RPCExamples{
|
|
|
|
|
HelpExampleCli("disconnectnode", "\"192.168.0.6:8333\"")
|
|
|
|
|
HelpExampleCli("disconnectnode", "\"192.168.0.6:9333\"")
|
|
|
|
|
+ HelpExampleCli("disconnectnode", "\"\" 1")
|
|
|
|
|
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:8333\"")
|
|
|
|
|
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:9333\"")
|
|
|
|
|
+ HelpExampleRpc("disconnectnode", "\"\", 1")
|
|
|
|
|
},
|
|
|
|
|
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
|
|
|
@ -915,8 +915,8 @@ static RPCHelpMan addpeeraddress()
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
RPCExamples{
|
|
|
|
|
HelpExampleCli("addpeeraddress", "\"1.2.3.4\" 8333")
|
|
|
|
|
+ HelpExampleRpc("addpeeraddress", "\"1.2.3.4\", 8333")
|
|
|
|
|
HelpExampleCli("addpeeraddress", "\"1.2.3.4\" 9333")
|
|
|
|
|
+ HelpExampleRpc("addpeeraddress", "\"1.2.3.4\", 9333")
|
|
|
|
|
},
|
|
|
|
|
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
|
|
|
|
{
|
|
|
|
|