changeset 29644:36e0b92bf2c5

rpc: fix argument check for getaddressutxos
author Braydon Fuller <courier@braydon.com>
date Tue, 29 Mar 2016 17:46:59 -0400
parents cfc827dde0e2
children 8719b8e89af9
files src/rpcmisc.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/rpcmisc.cpp	Tue Mar 29 15:17:30 2016 -0400
+++ b/src/rpcmisc.cpp	Tue Mar 29 17:46:59 2016 -0400
@@ -437,7 +437,7 @@
 
 UniValue getaddressutxos(const UniValue& params, bool fHelp)
 {
-    if (fHelp || params.size() != 1 || !params[0].isObject())
+    if (fHelp || params.size() != 1)
         throw runtime_error(
             "getaddressutxos\n"
             "\nReturns all unspent outputs for an address (requires addressindex to be enabled).\n"