From 78c2b26cb990bd79d3a0463186862c9509d4fc22 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 11 Sep 2016 14:26:06 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 2 +- iguana/iguana_recv.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 1ddbbd821..8949269be 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -1008,7 +1008,7 @@ int32_t iguana_RTiterate(struct supernet_info *myinfo,struct iguana_info *coin,i coin->RTrawdata[offset] = iguana_RTrawdata(coin,block->RO.hash2,0,&coin->RTrecvlens[offset],&coin->RTnumtx[offset],0); if ( (numtx= coin->RTnumtx[offset]) == 0 || (serialized= coin->RTrawdata[offset]) == 0 || (recvlen= coin->RTrecvlens[offset]) == 0 ) { - char str[65]; printf("%s cant load %s ht.%d polarity.%lld numtx.%d %p recvlen.%d\n",coin->symbol,bits256_str(str,block->RO.hash2),block->height,(long long)polarity,coin->RTnumtx[offset],coin->RTrawdata[offset],coin->RTrecvlens[offset]); + //char str[65]; printf("%s cant load %s ht.%d polarity.%lld numtx.%d %p recvlen.%d\n",coin->symbol,bits256_str(str,block->RO.hash2),block->height,(long long)polarity,coin->RTnumtx[offset],coin->RTrawdata[offset],coin->RTrecvlens[offset]); struct iguana_peer *addr; // int32_t errs = 0; iguana_blockhashset("RTblock",coin,coin->firstRTheight+offset,block->RO.hash2,1); if ( (bp= coin->bundles[block->hdrsi]) != 0 ) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 1a08ba3e9..49d5ea19e 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -124,7 +124,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, } if ( block != 0 ) block->issued = addr->pendtime; - if ( coin->RTheight > 0 )//&& coin->current == bp ) + if ( 0 && coin->RTheight > 0 )//&& coin->current == bp ) printf("REQ.(%s) [%d:%d] %s n.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1,addr->ipaddr,addr->pendblocks); } else printf("MSG_BLOCK null datalen.%d\n",len); return(len); @@ -813,7 +813,7 @@ void iguana_gotblockM(struct supernet_info *myinfo,struct iguana_info *coin,stru } if ( bundlei > 1 ) { - printf("DUP s.%d [%d:%d].(%s) %s n%d\n",numsaved,bp!=0?bp->hdrsi:-1,bundlei,bits256_str(str,origtxdata->zblock.RO.hash2),addr->ipaddr,addr->pendblocks); + // printf("DUP s.%d [%d:%d].(%s) %s n%d\n",numsaved,bp!=0?bp->hdrsi:-1,bundlei,bits256_str(str,origtxdata->zblock.RO.hash2),addr->ipaddr,addr->pendblocks); } return; }