From fd13bdc89669de467697d598a4aaf28edd02c469 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Sep 2016 08:11:06 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 43a6b3a99..a1bf013ef 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -670,7 +670,7 @@ int32_t iguana_bundleissuemissing(struct supernet_info *myinfo,struct iguana_inf iguana_bundleblock(coin,&hash2,bp,i); if ( bits256_nonz(hash2) != 0 ) { - if ( (addr= coin->peers->ranked[rand() % max]) != 0 && addr->usock >= 0 && addr->dead == 0 ) //strcmp("BTC",coin->symbol) != 0 || (bp->issued[i] > 1 && now > bp->issued[i]+lag && + if ( (addr= coin->peers->ranked[rand() % max]) != 0 && addr->usock >= 0 && addr->dead == 0 && addr->msgcounts.verack > 0 ) { iguana_sendblockreqPT(coin,0,bp,i,hash2,0); } @@ -695,7 +695,7 @@ int32_t iguana_bundleissuemissing(struct supernet_info *myinfo,struct iguana_inf iguana_bundleblock(coin,&hash2,bp,firsti); if ( bits256_nonz(hash2) != 0 ) { - if ( (addr= coin->peers->ranked[rand() % max]) != 0 && addr->usock >= 0 && addr->dead == 0 ) + if ( (addr= coin->peers->ranked[rand() % max]) != 0 && addr->usock >= 0 && addr->dead == 0 && addr->msgcounts.verack > 0 ) { //if ( bp == coin->current ) // printf("iguana_bundleissuemissing.[%d:%d]\n",bp->hdrsi,i);