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");