Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
954f07c6cd
  1. 6
      iguana/iguana_recv.c

6
iguana/iguana_recv.c

@ -423,9 +423,9 @@ int32_t iguana_bundlekick(struct iguana_info *coin,struct iguana_bundle *bp,int3
{
if ( (block= bp->blocks[i]) != 0 )
{
if ( block->fpipbits == 0 || block->RO.recvlen == 0 )
if ( block->fpipbits == 0 )//|| block->RO.recvlen == 0 )
{
if ( bp->issued[i] == 0 || now > bp->issued[i]+10 )
if ( block->issued == 0 || now > block->issued+60 )
{
block->numrequests++;
if ( bp->hdrsi == starti )
@ -580,7 +580,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
issued = 0;
max = 100 + (bp->n/coin->MAXBUNDLES)*(bp->hdrsi - starti);
iguana_bundlekick(coin,bp,starti,max);
if ( currentbp != 0 && queue_size(&coin->blocksQ) == 0 )
if ( 0 && currentbp != 0 && queue_size(&coin->blocksQ) == 0 )
iguana_bundlekick(coin,currentbp,starti,max);
if ( coin->numsaved > coin->longestchain*.99 )
{

Loading…
Cancel
Save