From: alex Date: Sun, 15 Sep 2013 22:41:55 +0000 (+0400) Subject: RPC: sendalert params types casting X-Git-Tag: v0.4.4.5~8 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=65fdb0dca519fb91e50e9331cd2c7c6de785ac45 RPC: sendalert params types casting --- diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 61f88f2..f67e45e 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1206,6 +1206,13 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector 2) ConvertTo(params[2]); if (strMethod == "getblocktemplate" && n > 0) ConvertTo(params[0]); if (strMethod == "listsinceblock" && n > 1) ConvertTo(params[1]); + + if (strMethod == "sendalert" && n > 2) ConvertTo(params[2]); + if (strMethod == "sendalert" && n > 3) ConvertTo(params[3]); + if (strMethod == "sendalert" && n > 4) ConvertTo(params[4]); + if (strMethod == "sendalert" && n > 5) ConvertTo(params[5]); + if (strMethod == "sendalert" && n > 6) ConvertTo(params[6]); + if (strMethod == "sendmany" && n > 1) ConvertTo(params[1]); if (strMethod == "sendmany" && n > 2) ConvertTo(params[2]); if (strMethod == "reservebalance" && n > 0) ConvertTo(params[0]);