From 6f23bced17335a0a7f5fd7d22d8a7bc66cfa2aae Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 12 Sep 2016 08:56:31 -0300 Subject: [PATCH] test --- iguana/iguana_msg.c | 2 +- iguana/iguana_peers.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index b31447698..bafc947ad 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -885,7 +885,7 @@ int32_t iguana_msgparser(struct supernet_info *myinfo,struct iguana_info *coin,s } if ( addr != 0 ) { - //if ( 0 && strcmp("DOGE",coin->symbol) == 0 ) + if ( addr->msgcounts.verack == 0 ) printf("iguana_msgparser verack.%d from (%s) parse.(%s) len.%d\n",addr->msgcounts.verack,addr->ipaddr,H->command,recvlen); //iguana_peerblockrequest(coin,addr->blockspace,IGUANA_MAXPACKETSIZE,addr,iguana_blockhash(coin,100),0); addr->lastcontact = (uint32_t)time(NULL); diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index d311ccb33..7a61c3a95 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -517,7 +517,8 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s } } addr->totalsent += len; - printf("verack.%d (%s) sent.%d bytes to %s\n",addr->msgcounts.verack,cmdstr,len,addr->ipaddr); + if ( addr->msgcounts.verack == 0 ) + printf("verack.%d (%s) sent.%d bytes to %s\n",addr->msgcounts.verack,cmdstr,len,addr->ipaddr); return(len); }