From 66f63b2725f4614420462050770ac7695aaa9f14 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 4 Sep 2016 04:37:53 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index ae1a5dab6..b469983a7 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -613,7 +613,7 @@ struct iguana_block *iguana_bundleblock(struct iguana_info *coin,bits256 *hash2p int32_t iguana_bundleissuemissing(struct iguana_info *coin,struct iguana_bundle *bp,int32_t priority,double mult) { - int32_t i,max,nonz,starti,lasti,firsti,lag,num,n=0; uint32_t now; bits256 hash2; double aveduration; struct iguana_peer *addr; + int32_t i,max,nonz,starti,lasti,firsti,lag,num,n=0; uint32_t now; bits256 hash2; double aveduration; struct iguana_peer *addr; struct iguana_block *block; if ( coin->peers == 0 ) { printf("%s has no peers\n",coin->symbol); @@ -661,8 +661,10 @@ int32_t iguana_bundleissuemissing(struct iguana_info *coin,struct iguana_bundle lasti = firsti = -1; for (i=nonz=0; in; i++) { - if ( GETBIT(bp->haveblock,i) != 0 ) + if ( (block= bp->blocks[i]) != 0 && block->txvalid != 0 ) continue; + //if ( GETBIT(bp->haveblock,i) != 0 ) + // continue; nonz++; if ( firsti < 0 ) firsti = i;