Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6d4b54b343
  1. 2
      iguana/iguana_bundles.c
  2. 3
      iguana/iguana_recv.c

2
iguana/iguana_bundles.c

@ -515,7 +515,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
{
printf("%d:%d.%d ",bp->hdrsi,j,block->numrequests);
bp->issued[j] = now;
iguana_blockQ(coin,bp,j,bp->hashes[j],0);
iguana_blockQ(coin,bp,j,bp->hashes[j],1);
if ( --issue < 0 )
break;
}

3
iguana/iguana_recv.c

@ -398,7 +398,8 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig
//fprintf(stderr,"i.%d of %d bundleset\n",i,n);
if ( (bp= iguana_bundleset(coin,&block,&bundlei,&blocks[i])) != 0 && bp->hdrsi < IGUANA_MAXACTIVEBUNDLES )
{
iguana_blockQ(coin,bp,bundlei,blocks[i].RO.hash2,0);
if ( (bundlei % coin->chain->bundlesize) < 1 )
iguana_blockQ(coin,bp,bundlei,blocks[i].RO.hash2,0);
}
}
}

Loading…
Cancel
Save