From 502ae69060b97b00752646385b5967475be282ce Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 19 Mar 2016 03:59:36 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index e400e103f..2d78dc085 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -495,15 +495,14 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int { if ( now > block->issued+lag ) { - iguana_blockQ("kick",coin,bp,i,block->RO.hash2,0); if ( bp == coin->current ) { counter++; - iguana_blockQ("kick",coin,bp,i,block->RO.hash2,bp == coin->current); - if ( bp == coin->current && (addr= coin->peers.ranked[rand() % numpeers]) != 0 ) - iguana_sendblockreqPT(coin,addr,bp,i,block->RO.hash2,0); + iguana_blockQ("kick",coin,bp,i,block->RO.hash2,1); + //if ( bp == coin->current && (addr= coin->peers.ranked[rand() % numpeers]) != 0 ) + // iguana_sendblockreqPT(coin,addr,bp,i,block->RO.hash2,0); printf("[%d:%d] ",bp->hdrsi,i); - } + } else iguana_blockQ("kick",coin,bp,i,block->RO.hash2,0); flag++; } //else printf("%d ",now - block->issued); }