From cc2dd293ec93a40e6e2d3cff22f04fa8453189c4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 19 Mar 2016 20:29:32 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index bb83d3a06..9c2c4a716 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -377,7 +377,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int if ( coin->current != 0 ) starti = coin->current->hdrsi; else starti = 0; - priority = (bp->hdrsi < starti+8); + priority = 1;//(bp->hdrsi < starti+8); lag = (bp->hdrsi - starti); lag *= lag; if ( (i= sqrt(bp->hdrsi)) < 2 ) @@ -471,9 +471,9 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int if ( peercounts[i] == 0 && donecounts[i] > threshold ) finished++; } - if ( finished > laggard*10 && numpeers > 2*laggard && laggard > 0 ) + if ( laggard == 1 )//finished > laggard*10 && numpeers > 2*laggard && laggard > 0 ) { - for (i=laggard=finished=0; i threshold && (addr= coin->peers.ranked[i]) != 0 && now > bp->currenttime+lag ) { @@ -495,8 +495,11 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int } } } - for (i=0; ihdrsi,finished,laggard,threshold); } }