RPC: Show correct port in HelpExampleRpc

This commit is contained in:
UdjinM6 2018-02-28 00:04:48 +03:00
parent e8febda363
commit e401d6e1aa

View File

@ -516,7 +516,8 @@ std::string HelpExampleCli(const std::string& methodname, const std::string& arg
std::string HelpExampleRpc(const std::string& methodname, const std::string& args)
{
return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", "
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/\n";
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;'"
" http://127.0.0.1:" + strprintf("%d", GetArg("-rpcport", BaseParams().RPCPort())) + "/\n";
}
void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface)