From 09b3da46b6fd4c478a7ee0eaa041480eb68e3ce0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 10 Mar 2016 23:39:36 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 85f7b8481..81127c3b7 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1040,11 +1040,11 @@ int32_t iguana_reqblocks(struct iguana_info *coin) int32_t hdrsi,lflag,n,bundlei,flag = 0; bits256 hash2; struct iguana_block *next,*block; struct iguana_bundle *bp; struct iguana_peer *addr; if ( (bp= coin->current) != 0 && bp->numsaved < bp->n ) // queue_size(&coin->priorityQ) == 0 && { - for (hdrsi=0; hdrsi<3*coin->peers.numranked&&coin->current->hdrsi+hdrsibundlescount; hdrsi++) + for (hdrsi=0; hdrsipeers.numranked&&coin->current->hdrsi+hdrsibundlescount; hdrsi++) { - if ( (bp= coin->bundles[hdrsi/3 + coin->current->hdrsi]) == 0 ) + if ( (bp= coin->bundles[hdrsi + coin->current->hdrsi]) == 0 ) continue; - if ( (addr= coin->peers.ranked[hdrsi/3]) == 0 || addr->msgcounts.verack == 0 ) + if ( (addr= coin->peers.ranked[hdrsi]) == 0 || addr->msgcounts.verack == 0 ) continue; for (bundlei=n=flag=0; bundlein; bundlei++) if ( (block= bp->blocks[bundlei]) != 0 )