diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 1df14834c..3de7bfac8 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -979,7 +979,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) { if ( req->datalen != 0 ) { - char str[65]; printf("CACHE parse[%d] %s %s\n",req->recvlen,req->H.command,bits256_str(str,req->block.RO.hash2)); + char str[65]; printf("CACHE.%p parse[%d] %s %s\n",req,req->recvlen,req->H.command,bits256_str(str,req->block.RO.hash2)); iguana_parsebuf(coin,addr,&req->H,req->serialized,req->recvlen); } else printf("CACHE error no datalen\n"); coin->cachefreed++; diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 458292e5c..8f697e34d 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -146,7 +146,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i bp = 0, bundlei = -2; if ( copyflag != 0 && recvlen != 0 && ((bp= iguana_bundlefind(coin,&bp,&bundlei,origtxdata->block.RO.hash2)) == 0 || (bp->blocks[bundlei] != 0 && bp->blocks[bundlei]->fpipbits == 0)) ) { - //printf("copy %p serialized[%d]\n",req->serialized,req->recvlen); + printf("copy %p serialized[%d]\n",req,req->recvlen); memcpy(req->serialized,data,recvlen), req->copyflag = 1; } if ( bits256_cmp(origtxdata->block.RO.hash2,coin->APIblockhash) == 0 ) @@ -603,7 +603,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana block->RO.recvlen = recvlen; if ( req->copyflag != 0 && block->queued == 0 && bp != 0 )//block->rawdata == 0 ) { - //char str[65]; fprintf(stderr,"%s copyflag.%d %d data %d %d\n",bits256_str(str,block->RO.hash2),req->copyflag,block->height,req->recvlen,recvlen); + char str[65]; fprintf(stderr,"req.%p %s copyflag.%d %d data %d %d\n",req,bits256_str(str,block->RO.hash2),req->copyflag,block->height,req->recvlen,recvlen); //block->rawdata = mycalloc('n',1,block->RO.recvlen); //memcpy(block->rawdata,req->serialized,block->RO.recvlen); //block->copyflag = 1;