|
|
@ -254,6 +254,7 @@ static const CRPCCommand vRPCCommands[] = |
|
|
|
{ "gettxout", &gettxout, true, false }, |
|
|
|
{ "gettxout", &gettxout, true, false }, |
|
|
|
{ "lockunspent", &lockunspent, false, false }, |
|
|
|
{ "lockunspent", &lockunspent, false, false }, |
|
|
|
{ "listlockunspent", &listlockunspent, false, false }, |
|
|
|
{ "listlockunspent", &listlockunspent, false, false }, |
|
|
|
|
|
|
|
{ "verifychain", &verifychain, true, false }, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
CRPCTable::CRPCTable() |
|
|
|
CRPCTable::CRPCTable() |
|
|
@ -1194,6 +1195,8 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri |
|
|
|
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]); |
|
|
|
if (strMethod == "importprivkey" && n > 2) ConvertTo<bool>(params[2]); |
|
|
|
|
|
|
|
if (strMethod == "verifychain" && n > 0) ConvertTo<boost::int64_t>(params[0]); |
|
|
|
|
|
|
|
if (strMethod == "verifychain" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
|
|
|
|
|
|
|
|
return params; |
|
|
|
return params; |
|
|
|
} |
|
|
|
} |
|
|
|