From 59d18adc4c2aaa5f24882e6c0cbeb43b47d80a80 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Mon, 9 May 2011 14:03:54 -0400 Subject: [PATCH] listtransactions number-of-params check was wrong. --- rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.cpp b/rpc.cpp index d6a92b34..f9503830 100644 --- a/rpc.cpp +++ b/rpc.cpp @@ -1081,7 +1081,7 @@ void AcentryToJSON(const CAccountingEntry& acentry, const string& strAccount, Ar Value listtransactions(const Array& params, bool fHelp) { - if (fHelp || params.size() > 2) + if (fHelp || params.size() > 3) throw runtime_error( "listtransactions [account] [count=10] [from=0]\n" "Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].");