Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fa081d430a
  1. 2
      iguana/iguana777.c
  2. 4
      iguana/iguana_bundles.c
  3. 2
      iguana/main.c

2
iguana/iguana777.c

@ -507,7 +507,7 @@ void iguana_helper(void *arg)
flag++; flag++;
} }
} }
if ( queue_size(&spendvectorsQ) != 0 || queue_size(&convertQ) != 0 || queue_size(&bundlesQ) > 10 ) if ( queue_size(&spendvectorsQ) != 0 || queue_size(&convertQ) != 0 || queue_size(&bundlesQ) > 1 )
allcurrent = 0; allcurrent = 0;
if ( flag != 0 ) if ( flag != 0 )
usleep(polltimeout * 250); usleep(polltimeout * 250);

4
iguana/iguana_bundles.c

@ -769,11 +769,11 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp)
break; break;
if ( bp->hdrsi < coin->blocks.hwmchain.height/coin->chain->bundlesize && i >= bp->hdrsi-IGUANA_NUMHELPERS && time(NULL) > bp->emitfinish+3 ) if ( bp->hdrsi < coin->blocks.hwmchain.height/coin->chain->bundlesize && i >= bp->hdrsi-IGUANA_NUMHELPERS && time(NULL) > bp->emitfinish+3 )
{ {
printf("[%d] vs %d i.%d vs %d emitted.%ld (%d %d %d) s.%u f.%u\n",bp->hdrsi,coin->blocks.hwmchain.height/coin->chain->bundlesize,i,bp->hdrsi-IGUANA_NUMHELPERS/2,time(NULL) - bp->emitfinish,bp->hdrsi < coin->blocks.hwmchain.height/coin->chain->bundlesize,i >= bp->hdrsi-IGUANA_NUMHELPERS, time(NULL) > bp->emitfinish,bp->startutxo,bp->utxofinish); //printf("[%d] vs %d i.%d vs %d emitted.%ld (%d %d %d) s.%u f.%u\n",bp->hdrsi,coin->blocks.hwmchain.height/coin->chain->bundlesize,i,bp->hdrsi-IGUANA_NUMHELPERS/2,time(NULL) - bp->emitfinish,bp->hdrsi < coin->blocks.hwmchain.height/coin->chain->bundlesize,i >= bp->hdrsi-IGUANA_NUMHELPERS, time(NULL) > bp->emitfinish,bp->startutxo,bp->utxofinish);
if ( bp->startutxo == 0 ) if ( bp->startutxo == 0 )
{ {
bp->startutxo = (uint32_t)time(NULL); bp->startutxo = (uint32_t)time(NULL);
printf("spendvectorsQ.%d\n",bp->hdrsi); //printf("spendvectorsQ.%d\n",bp->hdrsi);
iguana_spendvectorsQ(coin,bp); iguana_spendvectorsQ(coin,bp);
} }
else if ( bp->utxofinish != 0 ) else if ( bp->utxofinish != 0 )

2
iguana/main.c

@ -386,7 +386,7 @@ void mainloop(struct supernet_info *myinfo)
{ {
if ( (bp= coin->bundles[j]) != 0 ) if ( (bp= coin->bundles[j]) != 0 )
{ {
printf("bundleQ.[%d]\n",j); //printf("bundleQ.[%d]\n",j);
bp->balancefinish = bp->startutxo = 0; bp->balancefinish = bp->startutxo = 0;
bp->utxofinish = 1; bp->utxofinish = 1;
iguana_bundleQ(coin,bp,1000); iguana_bundleQ(coin,bp,1000);

Loading…
Cancel
Save