Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
ce0211d1b7
  1. 11
      iguana/iguana_realtime.c

11
iguana/iguana_realtime.c

@ -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++)

Loading…
Cancel
Save