From 65ac84a11fb2934cf0fb2629c1043a013c30a83a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 17 Mar 2016 20:44:43 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 62b91726b..90258a306 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -521,9 +521,9 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp) block->hdrsi = bp->hdrsi, block->bundlei = bundlei; if ( bp->minrequests == 0 || (block->numrequests > 0 && block->numrequests < bp->minrequests) ) bp->minrequests = block->numrequests; - if ( bits256_nonz(block->RO.prev_block) > 0 ) + //if ( bits256_nonz(block->RO.prev_block) > 0 ) { - if ( block->fpipbits != 0 ) + if ( block->fpos >= 0 && block->fpipbits != 0 ) bp->numsaved++; if ( block->RO.recvlen != 0 ) { @@ -533,14 +533,14 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp) bp->numcached++; } } - else //if ( 0 ) + /*else //if ( 0 ) { printf("cleared block?\n"); //block->RO.recvlen = 0; //block->fpipbits = 0; //block->fpos = -1; //block->issued = bp->issued[bundlei] = 0; - } + }*/ } else if ( 0 ) {