fixup some rpc param counting for rpc help
This commit is contained in:
parent
8bc6d1f179
commit
a70d025366
1 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ UniValue getrawchangeaddress(const JSONRPCRequest& request)
|
||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.fHelp || request.params.size() > 1)
|
if (request.fHelp || request.params.size() > 0)
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"getrawchangeaddress\n"
|
"getrawchangeaddress\n"
|
||||||
"\nReturns a new Bitcoin address, for receiving change.\n"
|
"\nReturns a new Bitcoin address, for receiving change.\n"
|
||||||
|
@ -484,7 +484,7 @@ UniValue listaddressgroupings(const JSONRPCRequest& request)
|
||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.fHelp)
|
if (request.fHelp || request.params.size() != 0)
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"listaddressgroupings\n"
|
"listaddressgroupings\n"
|
||||||
"\nLists groups of addresses which have had their common ownership\n"
|
"\nLists groups of addresses which have had their common ownership\n"
|
||||||
|
@ -1730,7 +1730,7 @@ UniValue listsinceblock(const JSONRPCRequest& request)
|
||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.fHelp)
|
if (request.fHelp || request.params.size() > 3)
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"listsinceblock ( \"blockhash\" target_confirmations include_watchonly)\n"
|
"listsinceblock ( \"blockhash\" target_confirmations include_watchonly)\n"
|
||||||
"\nGet all transactions in blocks since block [blockhash], or all transactions if omitted\n"
|
"\nGet all transactions in blocks since block [blockhash], or all transactions if omitted\n"
|
||||||
|
@ -2672,7 +2672,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
|
||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.fHelp || request.params.size() < 1 || request.params.size() > 3)
|
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"fundrawtransaction \"hexstring\" ( options )\n"
|
"fundrawtransaction \"hexstring\" ( options )\n"
|
||||||
"\nAdd inputs to a transaction until it has enough in value to meet its out value.\n"
|
"\nAdd inputs to a transaction until it has enough in value to meet its out value.\n"
|
||||||
|
|
Loading…
Reference in a new issue