Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
40061d128b
  1. 2
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

2
iguana/iguana_bundles.c

@ -520,7 +520,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
if ( bits256_nonz(bp->hashes[j]) > 0 && (block= bp->blocks[j]) != 0 )
{
//printf("j.%d bp.%d %d %x lag.%d\n",j,bp->minrequests,block->numrequests,block->fpipbits,now - bp->issued[j]);
if ( block->numrequests <= bp->minrequests && block->fpipbits == 0 && (bp->issued[j] == 0 || now > bp->issued[j]+60) )
if ( block->numrequests <= bp->minrequests+10 && block->fpipbits == 0 && (bp->issued[j] == 0 || now > bp->issued[j]+60) )
{
//printf("%d:%d.%d ",bp->hdrsi,j,block->numrequests);
flag++;

2
iguana/iguana_recv.c

@ -592,7 +592,7 @@ int32_t iguana_reqhdrs(struct iguana_info *coin)
{
if ( i == coin->bundlescount-1 )
lag = 60;
else lag = 13 + (rand() % 13);
else lag = 60 + (rand() % 30);
//if ( i < coin->bundlescount-1 && (bp->numhashes >= (rand() % bp->n) || time(NULL) < bp->hdrtime+lag) )
// continue;
if ( bp->numhashes < bp->n && bp->bundleheight+bp->numhashes < coin->longestchain && time(NULL) > bp->issuetime+lag )

Loading…
Cancel
Save