|
@ -636,12 +636,12 @@ int64_t iguana_RTunspents(struct supernet_info *myinfo,struct iguana_info *coin, |
|
|
bitcoin_address(coinaddr,addrtypes[i],&rmdarray[i * 20],20); |
|
|
bitcoin_address(coinaddr,addrtypes[i],&rmdarray[i * 20],20); |
|
|
*numunspentsp = 0; |
|
|
*numunspentsp = 0; |
|
|
iguana_RTpkhasharray(myinfo,coin,array,minconf,maxconf,&total,P,coin->bundlescount,&rmdarray[i * 20],coinaddr,&pubkeys[33*i],lastheight,unspents != 0 ? &unspents[numunspents] : 0,numunspentsp,maxunspents,remoteaddr,includespent); |
|
|
iguana_RTpkhasharray(myinfo,coin,array,minconf,maxconf,&total,P,coin->bundlescount,&rmdarray[i * 20],coinaddr,&pubkeys[33*i],lastheight,unspents != 0 ? &unspents[numunspents] : 0,numunspentsp,maxunspents,remoteaddr,includespent); |
|
|
printf("iguana_unspents: i.%d of %d: %s %.8f numunspents.%d\n",i,numrmds,coinaddr,dstr(total),*numunspentsp); |
|
|
//printf("iguana_unspents: i.%d of %d: %s %.8f numunspents.%d\n",i,numrmds,coinaddr,dstr(total),*numunspentsp);
|
|
|
maxunspents -= *numunspentsp; |
|
|
maxunspents -= *numunspentsp; |
|
|
numunspents += *numunspentsp; |
|
|
numunspents += *numunspentsp; |
|
|
sum += total; |
|
|
sum += total; |
|
|
} |
|
|
} |
|
|
printf("sum %.8f\n",dstr(sum)); |
|
|
//printf("sum %.8f\n",dstr(sum));
|
|
|
free(P); |
|
|
free(P); |
|
|
} |
|
|
} |
|
|
*numunspentsp = numunspents; |
|
|
*numunspentsp = numunspents; |
|
|