Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
5210d08e28
  1. 3
      .gitignore
  2. 2
      iguana/iguana777.c
  3. 4
      iguana/iguana_recv.c

3
.gitignore

@ -34,3 +34,6 @@ agents/win32/confs/.tmpmarker
agents/win32/DB/.tmpmarker
agents/win32/DB/purgeable/.tmpmarker
agents/*
iguana/confs/BTC_hdrs.txt

2
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);
}

4
iguana/iguana_recv.c

@ -1855,13 +1855,17 @@ 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 ( (rand() % 10) == 0 )
{
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);
if ( (rand() % 10) == 0 )
flag += iguana_reqblocks(myinfo,coin);
if ( time(NULL) > coin->laststats+30 )
{

Loading…
Cancel
Save