Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
7e0fd4bf63
  1. 2
      iguana/iguana_bundles.c

2
iguana/iguana_bundles.c

@ -439,7 +439,7 @@ 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 )
else if ( bp->hdrsi >= coin->bundlescount-1-(coin->peers.numranked/2) )
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));
}

Loading…
Cancel
Save