|
@ -670,7 +670,7 @@ int32_t iguana_bundleissuemissing(struct supernet_info *myinfo,struct iguana_inf |
|
|
iguana_bundleblock(coin,&hash2,bp,i); |
|
|
iguana_bundleblock(coin,&hash2,bp,i); |
|
|
if ( bits256_nonz(hash2) != 0 ) |
|
|
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); |
|
|
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); |
|
|
iguana_bundleblock(coin,&hash2,bp,firsti); |
|
|
if ( bits256_nonz(hash2) != 0 ) |
|
|
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 )
|
|
|
//if ( bp == coin->current )
|
|
|
// printf("iguana_bundleissuemissing.[%d:%d]\n",bp->hdrsi,i);
|
|
|
// printf("iguana_bundleissuemissing.[%d:%d]\n",bp->hdrsi,i);
|
|
|