{ "repairwallet", &repairwallet, false, true},
{ "resendtx", &resendtx, false, true},
{ "makekeypair", &makekeypair, false, true},
+ { "newmalleablekey", &newmalleablekey, false, false},
+ { "adjustmalleablekey", &adjustmalleablekey, false, false},
+ { "adjustmalleablepubkey", &adjustmalleablepubkey, false, false},
+ { "listmalleableviews", &listmalleableviews, false, false},
+ { "dumpmalleablekey", &dumpmalleablekey, false, false},
+ { "importmalleablekey", &importmalleablekey, true, false },
+ { "encryptdata", &encryptdata, false, false },
+ { "decryptdata", &decryptdata, false, false },
+ { "encryptmessage", &encryptmessage, false, false },
+ { "decryptmessage", &decryptmessage, false, false },
{ "sendalert", &sendalert, false, false},
};
string str;
getline(stream, str);
vector<string> vWords;
- boost::split(vWords, str, boost::is_any_of(" "));
+ istringstream iss(str);
+ copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter(vWords));
if (vWords.size() < 2)
return HTTP_INTERNAL_SERVER_ERROR;
proto = 0;
int ReadHTTPHeader(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet)
{
int nLen = 0;
- while (true)
+ for ( ; ; )
{
string str;
std::getline(stream, str);
AcceptedConnection *conn = (AcceptedConnection *) parg;
bool fRun = true;
- while (true)
+ for ( ; ; )
{
if (fShutdown || !fRun)
{
BOOST_FOREACH(const std::string ¶m, strParams)
params.push_back(param);
- int n = params.size();
+ size_t n = params.size();
//
// Special case non-string parameter types
if (strMethod == "getblocktemplate" && n > 0) ConvertTo<Object>(params[0]);
if (strMethod == "listsinceblock" && n > 1) ConvertTo<int64_t>(params[1]);
- if (strMethod == "scaninput" && n > 1) ConvertTo<int>(params[1]);
- if (strMethod == "scaninput" && n > 2) ConvertTo<double>(params[2]);
- if (strMethod == "scaninput" && n > 3) ConvertTo<int>(params[3]);
+ if (strMethod == "scaninput" && n > 0) ConvertTo<Object>(params[0]);
if (strMethod == "sendalert" && n > 2) ConvertTo<int64_t>(params[2]);
if (strMethod == "sendalert" && n > 3) ConvertTo<int64_t>(params[3]);