changeset 29668:fcc45457f62c

rpcclient: add params to be parsed as JSON There was an issue where getblockhashes wouldn't work from bitcoin-cli as the two params would be strings instead of integers. This fixes that issue, and will parse the first param as JSON for other addressindex related rpc methods.
author Braydon Fuller <braydon@bitpay.com>
date Wed, 11 May 2016 17:17:08 -0400
parents 4d743f23fdd6
children 9166bd32bbd1
files src/rpcclient.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/rpcclient.cpp	Wed Apr 20 22:36:55 2016 +0200
+++ b/src/rpcclient.cpp	Wed May 11 17:17:08 2016 -0400
@@ -102,6 +102,14 @@
     { "prioritisetransaction", 2 },
     { "setban", 2 },
     { "setban", 3 },
+    { "getblockhashes", 0 },
+    { "getblockhashes", 1 },
+    { "getspentinfo", 0},
+    { "getaddresstxids", 0},
+    { "getaddressbalance", 0},
+    { "getaddressdeltas", 0},
+    { "getaddressutxos", 0},
+    { "getaddressmempool", 0},
 };
 
 class CRPCConvertTable