From 911348c4efc2584d1da1d9b4fceb7be550c9815f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 18 Mar 2016 02:07:36 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 43062a5da..f8257ca4f 100755 --- a/iguana/iguana_bundles.c +++ b/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 ) {