|
|
@ -909,11 +909,14 @@ int32_t iguana_RTiterate(struct supernet_info *myinfo,struct iguana_info *coin,i |
|
|
|
printf("%s errs.%d cant load %s ht.%d polarity.%lld numtx.%d %p recvlen.%d\n",coin->symbol,errs,bits256_str(str,block->RO.hash2),block->height,(long long)polarity,coin->RTnumtx[offset],coin->RTrawdata[offset],coin->RTrecvlens[offset]); |
|
|
|
struct iguana_peer *addr; |
|
|
|
iguana_blockQ("RTiterate",coin,coin->bundles[block->hdrsi],block->bundlei,block->RO.hash2,1); |
|
|
|
if ( coin->peers != 0 && coin->peers->numranked > 0 ) |
|
|
|
if ( coin->peers != 0 ) |
|
|
|
{ |
|
|
|
for (i=0; i<coin->peers->numranked&&i<8; i++) |
|
|
|
if ( (addr= coin->peers->ranked[i]) != 0 ) |
|
|
|
iguana_sendblockreqPT(coin,addr,coin->bundles[block->hdrsi],block->bundlei,block->RO.hash2,1); |
|
|
|
if ( coin->peers->numranked > 0 ) |
|
|
|
{ |
|
|
|
for (i=0; i<coin->peers->numranked&&i<8; i++) |
|
|
|
if ( (addr= coin->peers->ranked[i]) != 0 ) |
|
|
|
iguana_sendblockreqPT(coin,addr,coin->bundles[block->hdrsi],block->bundlei,block->RO.hash2,1); |
|
|
|
} else iguana_updatemetrics(myinfo,coin); |
|
|
|
} |
|
|
|
num = 0; |
|
|
|
for (height=block->height+1; height<=coin->blocks.hwmchain.height; height++) |
|
|
|