|
|
@ -331,20 +331,23 @@ void mainloop(struct supernet_info *myinfo) |
|
|
|
while ( 1 ) |
|
|
|
{ |
|
|
|
flag = 0; |
|
|
|
for (i=0; i<IGUANA_MAXCOINS; i++) |
|
|
|
if ( (coin= Coins[i]) != 0 && coin->active != 0 && (bp= coin->current) != 0 ) |
|
|
|
{ |
|
|
|
iguana_bundleissue(coin,bp,bp->n,100); |
|
|
|
if ( (ptr= queue_dequeue(&balancesQ,0)) != 0 ) |
|
|
|
if ( 0 ) |
|
|
|
{ |
|
|
|
for (i=0; i<IGUANA_MAXCOINS; i++) |
|
|
|
if ( (coin= Coins[i]) != 0 && coin->active != 0 && (bp= coin->current) != 0 ) |
|
|
|
{ |
|
|
|
if ( ptr->bp != 0 && ptr->coin != 0 ) |
|
|
|
iguana_bundleissue(coin,bp,bp->n,100); |
|
|
|
if ( (ptr= queue_dequeue(&balancesQ,0)) != 0 ) |
|
|
|
{ |
|
|
|
iguana_balancecalc(ptr->coin,ptr->bp); |
|
|
|
//iguana_coinflush(ptr->coin,0);
|
|
|
|
if ( ptr->bp != 0 && ptr->coin != 0 ) |
|
|
|
{ |
|
|
|
iguana_balancecalc(ptr->coin,ptr->bp); |
|
|
|
//iguana_coinflush(ptr->coin,0);
|
|
|
|
} |
|
|
|
myfree(ptr,ptr->allocsize); |
|
|
|
} |
|
|
|
myfree(ptr,ptr->allocsize); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
iguana_jsonQ(); |
|
|
|
if ( flag == 0 ) |
|
|
|
{ |
|
|
|