Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f4857bd06e
  1. 2
      crypto777/iguana_OS.c
  2. 2
      iguana/iguana_bundles.c

2
crypto777/iguana_OS.c

@ -81,8 +81,8 @@ long myallocated(uint8_t type,long change)
Total_allocated += change;
if ( Total_allocated > HWM_allocated )
{
printf("HWM allocated %ld %s\n",(long)Total_allocated,mbstr(str,Total_allocated));
HWM_allocated = Total_allocated * 1.5;
printf("HWM allocated %ld %s\n",(long)Total_allocated,mbstr(str,Total_allocated));
}
}
return(total);

2
iguana/iguana_bundles.c

@ -999,7 +999,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
else if ( bp == coin->current )
{
for (j=0; j<bp->n; j++)
if ( (block= bp->blocks[j]) != 0 && (block->RO.recvlen == 0 || block->fpipbits == 0 || block->fpos < 0) && time(NULL) > block->issued+3 )
if ( (block= bp->blocks[j]) != 0 && (block->RO.recvlen == 0 || block->fpipbits == 0 || block->fpos < 0) && time(NULL) > block->issued+3 && (rand() % 10) == 0 )
{
if ( (r= coin->peers.numranked) != 0 && (addr= coin->peers.ranked[rand() % r]) != 0 && addr->dead == 0 && addr->usock >= 0 )
iguana_sendblockreqPT(coin,addr,bp,j,block->RO.hash2,0); printf("current stop [%d:%d]\n",bp->hdrsi,j);

Loading…
Cancel
Save