|
|
@ -207,6 +207,7 @@ static const CRPCCommand vRPCCommands[] = |
|
|
|
{ "addnode", &addnode, true, true }, |
|
|
|
{ "addnode", &addnode, true, true }, |
|
|
|
{ "getaddednodeinfo", &getaddednodeinfo, true, true }, |
|
|
|
{ "getaddednodeinfo", &getaddednodeinfo, true, true }, |
|
|
|
{ "getdifficulty", &getdifficulty, true, false }, |
|
|
|
{ "getdifficulty", &getdifficulty, true, false }, |
|
|
|
|
|
|
|
{ "getnetworkhashps", &getnetworkhashps, true, false }, |
|
|
|
{ "getgenerate", &getgenerate, true, false }, |
|
|
|
{ "getgenerate", &getgenerate, true, false }, |
|
|
|
{ "setgenerate", &setgenerate, true, false }, |
|
|
|
{ "setgenerate", &setgenerate, true, false }, |
|
|
|
{ "gethashespersec", &gethashespersec, true, false }, |
|
|
|
{ "gethashespersec", &gethashespersec, true, false }, |
|
|
@ -1145,6 +1146,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri |
|
|
|
if (strMethod == "getaddednodeinfo" && n > 0) ConvertTo<bool>(params[0]); |
|
|
|
if (strMethod == "getaddednodeinfo" && n > 0) ConvertTo<bool>(params[0]); |
|
|
|
if (strMethod == "setgenerate" && n > 0) ConvertTo<bool>(params[0]); |
|
|
|
if (strMethod == "setgenerate" && n > 0) ConvertTo<bool>(params[0]); |
|
|
|
if (strMethod == "setgenerate" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "setgenerate" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
|
|
|
|
if (strMethod == "getnetworkhashps" && n > 0) ConvertTo<boost::int64_t>(params[0]); |
|
|
|
if (strMethod == "sendtoaddress" && n > 1) ConvertTo<double>(params[1]); |
|
|
|
if (strMethod == "sendtoaddress" && n > 1) ConvertTo<double>(params[1]); |
|
|
|
if (strMethod == "settxfee" && n > 0) ConvertTo<double>(params[0]); |
|
|
|
if (strMethod == "settxfee" && n > 0) ConvertTo<double>(params[0]); |
|
|
|
if (strMethod == "getreceivedbyaddress" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "getreceivedbyaddress" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|