Skip to content

Commit

Permalink
Added "sendalert" command
Browse files Browse the repository at this point in the history
Converts the alert params to int
  • Loading branch information
aciddude committed Feb 7, 2017
1 parent f07974c commit 35aff2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rpcclient.cpp
Expand Up @@ -179,6 +179,11 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri
if (strMethod == "sendtostealthaddress" && n > 1) ConvertTo<double>(params[1]);
if (strMethod == "scanforstealthtxns" && n > 0) ConvertTo<int>(params[0]);
if (strMethod == "scanforalltxns" && n > 0) ConvertTo<int>(params[0]);
if (strMethod == "sendalert" && n > 2) ConvertTo<boost::int64_t>(params[2]);
if (strMethod == "sendalert" && n > 3) ConvertTo<boost::int64_t>(params[3]);
if (strMethod == "sendalert" && n > 4) ConvertTo<boost::int64_t>(params[4]);
if (strMethod == "sendalert" && n > 5) ConvertTo<boost::int64_t>(params[5]);
if (strMethod == "sendalert" && n > 6) ConvertTo<boost::int64_t>(params[6]);

return params;
}
Expand Down

0 comments on commit 35aff2d

Please sign in to comment.