Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
911348c4ef
  1. 18
      iguana/iguana_bundles.c

18
iguana/iguana_bundles.c

@ -406,20 +406,20 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
block->numrequests++;
}
}
else
else if ( block->peerid > 0 )
{
if ( block->fpipbits == 0 )
{
peercounts[block->peerid - 1]++;
if ( peercounts[block->peerid - 1] > maxval )
maxval = peercounts[block->peerid - 1];
}
else if ( block->fpipbits != 0 )//&& block->fpos >= 0 )
if ( block->fpipbits != 0 && block->fpos >= 0 )
{
donecounts[block->peerid - 1]++;
if ( donecounts[block->peerid - 1] > minval )
minval = donecounts[block->peerid - 1];
}
else
{
peercounts[block->peerid - 1]++;
if ( peercounts[block->peerid - 1] > maxval )
maxval = peercounts[block->peerid - 1];
}
}
}
}
@ -475,7 +475,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
}
}
}
if ( 1 && bp == coin->current )
if ( 0 && bp == coin->current )
{
if ( bp->numsaved < bp->n*.95 )
{

Loading…
Cancel
Save