diff --git a/.gitignore b/.gitignore index 8da930c91..558848c08 100755 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ agents/win32/confs/.tmpmarker agents/win32/DB/.tmpmarker agents/win32/DB/purgeable/.tmpmarker agents/* + +iguana/confs/BTC_hdrs.txt + diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 25aa2cfe6..84f238305 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -631,7 +631,7 @@ void iguana_helper(void *arg) allcurrent = 0; //printf("h.%d [%d] bundleQ size.%d lag.%ld\n",helperid,bp->hdrsi,queue_size(&bundlesQ),time(NULL) - bp->nexttime); 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); } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 4b5f09261..8dade502d 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1855,14 +1855,18 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin coin->balanceflush = 0; //iguana_utxoaddr_gen(myinfo,coin,(coin->balanceswritten - 1) * coin->chain->bundlesize); } - if ( coin->utxoaddrtable != 0 && coin->RTheight > 0 && coin->RTheight <= coin->blocks.hwmchain.height ) + if ( (rand() % 10) == 0 ) { - struct iguana_block *block; - if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) - iguana_RTnewblock(myinfo,coin,block); + if ( coin->utxoaddrtable != 0 && coin->RTheight > 0 && coin->RTheight <= coin->blocks.hwmchain.height ) + { + struct iguana_block *block; + if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) + iguana_RTnewblock(myinfo,coin,block); + } } flag += iguana_processrecvQ(myinfo,coin,&newhwm); - flag += iguana_reqblocks(myinfo,coin); + if ( (rand() % 10) == 0 ) + flag += iguana_reqblocks(myinfo,coin); if ( time(NULL) > coin->laststats+30 ) { flag += iguana_reqhdrs(coin);