Browse Source

speed test

release/v0.1
jl777 8 years ago
parent
commit
afa3b28f29
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_bundles.c

2
iguana/iguana777.c

@ -691,7 +691,7 @@ void iguana_helper(void *arg)
allcurrent = 0; allcurrent = 0;
//printf("h.%d [%d] bundleQ size.%d lag.%ld\n",helperid,bp->hdrsi,queue_size(&bundlesQ),time(NULL) - bp->nexttime); //printf("h.%d [%d] bundleQ size.%d lag.%ld\n",helperid,bp->hdrsi,queue_size(&bundlesQ),time(NULL) - bp->nexttime);
coin->numbundlesQ--; coin->numbundlesQ--;
if ( coin->started != 0 && (bp->nexttime == 0 || time(NULL) >= bp->nexttime) && coin->active != 0 ) if ( coin->started != 0 && (bp->nexttime == 0 || time(NULL) > bp->nexttime) && coin->active != 0 )
{ {
flag += iguana_bundleiters(myinfo,ptr->coin,&MEM,MEMB,bp,ptr->timelimit,IGUANA_DEFAULTLAG); flag += iguana_bundleiters(myinfo,ptr->coin,&MEM,MEMB,bp,ptr->timelimit,IGUANA_DEFAULTLAG);
} }

2
iguana/iguana_bundles.c

@ -663,7 +663,7 @@ int32_t iguana_bundleissuemissing(struct supernet_info *myinfo,struct iguana_inf
if ( firsti < 0 ) if ( firsti < 0 )
firsti = i; firsti = i;
lasti = i; lasti = i;
if ( bp->issued[i] > 1 && now > bp->issued[i]+lag ) if ( strcmp("BTC",coin->symbol) != 0 || (bp->issued[i] > 1 && now > bp->issued[i]+lag) )
{ {
iguana_bundleblock(coin,&hash2,bp,i); iguana_bundleblock(coin,&hash2,bp,i);
if ( bits256_nonz(hash2) != 0 ) if ( bits256_nonz(hash2) != 0 )

Loading…
Cancel
Save