Browse Source

Merge pull request #2116 from sipa/importrescanbool

Convert fRescan argument to importprivkey to bool
miguelfreitas
Gavin Andresen 12 years ago
parent
commit
23826f1b7f
  1. 1
      src/bitcoinrpc.cpp

1
src/bitcoinrpc.cpp

@ -1219,6 +1219,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri
if (strMethod == "gettxout" && n > 2) ConvertTo<bool>(params[2]); if (strMethod == "gettxout" && n > 2) ConvertTo<bool>(params[2]);
if (strMethod == "lockunspent" && n > 0) ConvertTo<bool>(params[0]); if (strMethod == "lockunspent" && n > 0) ConvertTo<bool>(params[0]);
if (strMethod == "lockunspent" && n > 1) ConvertTo<Array>(params[1]); if (strMethod == "lockunspent" && n > 1) ConvertTo<Array>(params[1]);
if (strMethod == "importprivkey" && n > 2) ConvertTo<bool>(params[2]);
return params; return params;
} }

Loading…
Cancel
Save