From 12173a5395e7515a48a10f9f91d91d3aeee3c96f Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 4 Sep 2016 08:33:28 -0300 Subject: [PATCH] test --- iguana/iguana_unspents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 46cdeb34b..c53054607 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -555,6 +555,8 @@ int64_t iguana_RTpkhashbalance(struct supernet_info *myinfo,struct iguana_info * int32_t iguana_RTpkhasharray(struct supernet_info *myinfo,struct iguana_info *coin,cJSON *array,int32_t minconf,int32_t maxconf,uint64_t *totalp,struct iguana_pkhash *P,int32_t max,uint8_t rmd160[20],char *coinaddr,uint8_t *pubkey33,int32_t lastheight,struct iguana_outpoint *unspents,int32_t *numunspentsp,int32_t maxunspents,char *remoteaddr,int32_t includespent) { int32_t i,n,m,numunspents; int64_t spent,deposits,netbalance,total; struct iguana_outpoint lastpt; struct iguana_pkhash *p,_p; struct iguana_ramchain *ramchain; struct iguana_bundle *bp; + if ( coin->RTheight == 0 ) + return(-1); if ( 0 && coin->RTramchain_busy != 0 ) { printf("iguana_pkhasharray: unexpected access when RTramchain_busy\n");