From b486570855e0f04f77d8af02ab33ae2ef41113bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 1 Nov 2016 14:48:58 -0300 Subject: [PATCH] listreceivedbyaddress and getreceivedbyaddress doesn't need unlocked wallet --- iguana/iguana_wallet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_wallet.c b/iguana/iguana_wallet.c index 06a6dde5c..2fd7890cd 100755 --- a/iguana/iguana_wallet.c +++ b/iguana/iguana_wallet.c @@ -1801,8 +1801,8 @@ THREE_INTS(bitcoinrpc,listreceivedbyaddress,minconf,includeempty,flag) cJSON *retjson,*item,*array,*txids,*vouts; struct iguana_waccount *wacct,*tmp; struct iguana_waddress *waddr,*tmp2; uint8_t addrtype; char coinaddr[64]; if ( remoteaddr != 0 ) return(clonestr("{\"error\":\"no remote\"}")); - if ( myinfo->expiration == 0 ) - return(clonestr("{\"error\":\"need to unlock wallet\"}")); + //if ( myinfo->expiration == 0 ) + // return(clonestr("{\"error\":\"need to unlock wallet\"}")); array = cJSON_CreateArray(); HASH_ITER(hh,myinfo->wallet,wacct,tmp) {