|
|
@ -249,6 +249,7 @@ static const CRPCCommand vRPCCommands[] = |
|
|
|
{ "dhtputraw", &dhtputraw, false, true, true }, |
|
|
|
{ "dhtputraw", &dhtputraw, false, true, true }, |
|
|
|
{ "dhtget", &dhtget, false, true, true }, |
|
|
|
{ "dhtget", &dhtget, false, true, true }, |
|
|
|
{ "newpostmsg", &newpostmsg, false, true, false }, |
|
|
|
{ "newpostmsg", &newpostmsg, false, true, false }, |
|
|
|
|
|
|
|
{ "newpostraw", &newpostraw, false, true, true }, |
|
|
|
{ "newdirectmsg", &newdirectmsg, false, true, false }, |
|
|
|
{ "newdirectmsg", &newdirectmsg, false, true, false }, |
|
|
|
{ "newrtmsg", &newrtmsg, false, true, false }, |
|
|
|
{ "newrtmsg", &newrtmsg, false, true, false }, |
|
|
|
{ "getposts", &getposts, false, true, false }, |
|
|
|
{ "getposts", &getposts, false, true, false }, |
|
|
@ -1304,6 +1305,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri |
|
|
|
if (strMethod == "dhtget" && n > 5) ConvertTo<boost::int64_t>(params[5]); |
|
|
|
if (strMethod == "dhtget" && n > 5) ConvertTo<boost::int64_t>(params[5]); |
|
|
|
if (strMethod == "newpostmsg" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "newpostmsg" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "newpostmsg" && n > 4) ConvertTo<boost::int64_t>(params[4]); |
|
|
|
if (strMethod == "newpostmsg" && n > 4) ConvertTo<boost::int64_t>(params[4]); |
|
|
|
|
|
|
|
if (strMethod == "newpostraw" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "newdirectmsg" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "newdirectmsg" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "newdirectmsg" && n > 4) ConvertTo<bool>(params[4]); |
|
|
|
if (strMethod == "newdirectmsg" && n > 4) ConvertTo<bool>(params[4]); |
|
|
|
if (strMethod == "newrtmsg" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "newrtmsg" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|