listtransactions number-of-params check was wrong.
This commit is contained in:
parent
c0430f42b8
commit
59d18adc4c
1 changed files with 1 additions and 1 deletions
2
rpc.cpp
2
rpc.cpp
|
@ -1081,7 +1081,7 @@ void AcentryToJSON(const CAccountingEntry& acentry, const string& strAccount, Ar
|
||||||
|
|
||||||
Value listtransactions(const Array& params, bool fHelp)
|
Value listtransactions(const Array& params, bool fHelp)
|
||||||
{
|
{
|
||||||
if (fHelp || params.size() > 2)
|
if (fHelp || params.size() > 3)
|
||||||
throw runtime_error(
|
throw runtime_error(
|
||||||
"listtransactions [account] [count=10] [from=0]\n"
|
"listtransactions [account] [count=10] [from=0]\n"
|
||||||
"Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].");
|
"Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].");
|
||||||
|
|
Loading…
Reference in a new issue