diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 8dfe4b6b5..1e65e5715 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -439,9 +439,9 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp) bp->emitfinish = 1; iguana_emitQ(coin,bp); } - else if ( bp->hdrsi >= coin->bundlescount-1-(coin->peers.numranked/2) ) + else if ( bp->hdrsi >= coin->bundlescount-1 ) bp->metric = 1; - else bp->metric = (2*bp->n - bp->numsaved - bp->numrecv) * (bp->hdrsi + 1);//sqrt((sqrt(fabs(bp->estsize - bp->datasize)) * (bp->n - bp->numsaved)) * (bp->hdrsi + 1)); + else bp->metric = (bp->hdrsi + 1);//(2*bp->n - bp->numsaved - bp->numrecv);//sqrt((sqrt(fabs(bp->estsize - bp->datasize)) * (bp->n - bp->numsaved)) * (bp->hdrsi + 1)); } //printf("%f ",bp->metric); return(bp->estsize);