From fbc0eda8962cb00f156cee9b1db5a93533128530 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Jan 2016 12:59:59 -0300 Subject: [PATCH] test --- iguana/iguana_msg.c | 2 +- iguana/iguana_recv.c | 8 ++++---- iguana/main.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index e1307aaab..81d9c0916 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -186,7 +186,7 @@ void iguana_gotaddr(struct iguana_info *coin,struct iguana_peer *addr,struct igu if ( port != 0 ) sprintf(ipport,"%s:%d",ipaddr,port); iguana_possible_peer(coin,ipport); - printf("gotaddr.(%s:%d)\n",ipaddr,port); + //printf("gotaddr.(%s:%d)\n",ipaddr,port); } void iguana_gotping(struct iguana_info *coin,struct iguana_peer *addr,uint64_t nonce,uint8_t *data) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 62c36f6c8..58227478a 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -53,7 +53,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, coin->numreqsent++; addr->pendblocks++; addr->pendtime = (uint32_t)time(NULL); - printf("REQ.%s bundlei.%d hdrsi.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1); + // printf("REQ.%s bundlei.%d hdrsi.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1); } else printf("MSG_BLOCK null datalen.%d\n",len); return(len); } @@ -522,7 +522,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct int32_t bundlei,i; struct iguana_bundle *bp;// struct iguana_block *block; bp = 0, bundlei = -2; iguana_bundlefind(coin,&bp,&bundlei,blockhashes[1]); - char str[65]; printf("blockhashes[%d] %d of %d %s bp.%d[%d]\n",num,bp==0?-1:bp->hdrsi,coin->bundlescount,bits256_str(str,blockhashes[1]),bp==0?-1:bp->bundleheight,bundlei); + // char str[65]; printf("blockhashes[%d] %d of %d %s bp.%d[%d]\n",num,bp==0?-1:bp->hdrsi,coin->bundlescount,bits256_str(str,blockhashes[1]),bp==0?-1:bp->bundleheight,bundlei); if ( bp != 0 ) { bp->hdrtime = (uint32_t)time(NULL); @@ -576,7 +576,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana { struct iguana_bundle *bp=0; int32_t bundlei = -2; struct iguana_block *block; bp = iguana_bundleset(coin,&block,&bundlei,origblock); - static int total; char str[65]; printf("RECV %s [%d:%d] block.%08x | %d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,total++); + //static int total; char str[65]; printf("RECV %s [%d:%d] block.%08x | %d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,total++); if ( block != 0 ) { block->RO.recvlen = recvlen; @@ -799,7 +799,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) } //if ( bp == 0 || z != 0 ) { - printf("%s request HDR.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp->numhashes); + //printf("%s request HDR.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp->numhashes); iguana_send(coin,addr,serialized,datalen); addr->pendhdrs++; flag++; diff --git a/iguana/main.c b/iguana/main.c index ac00c1fb4..cba2f17c9 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -448,7 +448,7 @@ void iguana_main(void *arg) signal(SIGINT,sigint_func); signal(SIGILL,sigillegal_func); signal(SIGHUP,sighangup_func); - signal(SIGKILL,sigkill_func); + //signal(SIGKILL,sigkill_func); signal(SIGABRT,sigabort_func); signal(SIGQUIT,sigquit_func); signal(SIGCHLD,sigchild_func);