From eb82f39655b6a35d52a04ce6a0f42176e20b06c7 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Wed, 11 May 2016 17:17:08 -0400 Subject: [PATCH] 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. --- src/rpcclient.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index 0471580237..27a09c0fc4 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -102,6 +102,14 @@ static const CRPCConvertParam vRPCConvertParams[] = { "prioritisetransaction", 2 }, { "setban", 2 }, { "setban", 3 }, + { "getblockhashes", 0 }, + { "getblockhashes", 1 }, + { "getspentinfo", 0}, + { "getaddresstxids", 0}, + { "getaddressbalance", 0}, + { "getaddressdeltas", 0}, + { "getaddressutxos", 0}, + { "getaddressmempool", 0}, }; class CRPCConvertTable