Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
03de0e50b4
  1. 18
      iguana/main.c

18
iguana/main.c

@ -353,15 +353,19 @@ void mainloop(struct supernet_info *myinfo)
if ( 1 )
{
for (i=0; i<IGUANA_MAXCOINS; i++)
if ( (coin= Coins[i]) != 0 && coin->active != 0 && (bp= coin->current) != 0 && coin->started != 0 )
if ( (coin= Coins[i]) != 0 && coin->active != 0 && (bp= coin->current) != 0 )
{
iguana_realtime_update(coin);
if ( (ptr= queue_dequeue(&balancesQ,0)) != 0 )
printf("check %s started.%p\n",coin->symbol,coin->started);
if ( coin->started != 0 )
{
flag++;
if ( ptr->coin != 0 && (bp= ptr->bp) != 0 )
iguana_balancecalc(ptr->coin,bp,bp->bundleheight,bp->bundleheight+bp->n-1);
myfree(ptr,ptr->allocsize);
iguana_realtime_update(coin);
if ( (ptr= queue_dequeue(&balancesQ,0)) != 0 )
{
flag++;
if ( ptr->coin != 0 && (bp= ptr->bp) != 0 )
iguana_balancecalc(ptr->coin,bp,bp->bundleheight,bp->bundleheight+bp->n-1);
myfree(ptr,ptr->allocsize);
}
}
}
}

Loading…
Cancel
Save