From c5b3b4df02ab6f08129ab98157c7e037feb29bd7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Sep 2016 07:42:55 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 4 ++-- iguana/iguana_recv.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 36b558747..9e005ce88 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -908,12 +908,12 @@ 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,0,-1,block->RO.hash2,1); + iguana_blockQ("RTiterate",coin,coin->bundles[block->hdrsi],block->bundlei,block->RO.hash2,1); if ( coin->peers != 0 && coin->peers->numranked > 0 ) { for (i=0; ipeers->numranked&&i<8; i++) if ( (addr= coin->peers->ranked[i]) != 0 ) - iguana_sendblockreqPT(coin,addr,0,-1,block->RO.hash2,1); + iguana_sendblockreqPT(coin,addr,coin->bundles[block->hdrsi],block->bundlei,block->RO.hash2,1); } num = 0; for (height=block->height+1; height<=coin->blocks.hwmchain.height; height++) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 6bd9d4e66..ca8d7105f 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -80,7 +80,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, checkbp = 0, j = -2; if ( (checkbp= iguana_bundlefind(coin,&checkbp,&j,hash2)) != 0 && j >= 0 && j < checkbp->n ) { - if ( checkbp->emitfinish != 0 || ((block= checkbp->blocks[j]) != 0 && block->txvalid != 0 && block->mainchain != 0 && block->valid != 0) ) + if ( checkbp->emitfinish != 0 || ((block= checkbp->blocks[j]) != 0 && block->txvalid != 0 && block->mainchain != 0 && block->valid != 0 && block->bundlei != 0) ) { //char str[65]; recvlen = numtx = 0;