From 401c409809f5fb5d95ba9ace887da80ed9b77ce5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 12:57:10 -0300 Subject: [PATCH] test --- confs/BTCD_peers.txt | 7 +++++++ iguana/iguana_msg.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/confs/BTCD_peers.txt b/confs/BTCD_peers.txt index a36595633..39fce24ca 100644 --- a/confs/BTCD_peers.txt +++ b/confs/BTCD_peers.txt @@ -1,3 +1,10 @@ +89.248.160.237 +89.248.160.238 +89.248.160.239 +89.248.160.240 +89.248.160.241 +89.248.160.242 +89.248.160.243 78.47.58.62 67.212.70.88 94.102.50.69 diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 86a87b930..8efd12e2d 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -141,7 +141,7 @@ void iguana_gotversion(struct iguana_info *coin,struct iguana_peer *addr,struct //printf("gotversion from %s\n",addr->ipaddr); if ( (vers->nServices & NODE_NETWORK) == 0 ) printf("other node.(%s) doesnt relay\n",addr->ipaddr); - else if ( (vers->nServices & NODE_NETWORK) != 0 )//&& vers->nonce != coin->instance_nonce ) + if ( (vers->nServices & NODE_NETWORK) != 0 )//&& vers->nonce != coin->instance_nonce ) { addr->protover = (vers->nVersion < PROTOCOL_VERSION) ? vers->nVersion : PROTOCOL_VERSION; addr->relayflag = vers->relayflag; @@ -154,6 +154,7 @@ void iguana_gotversion(struct iguana_info *coin,struct iguana_peer *addr,struct if ( (vers->nServices & (1<<7)) == (1<<7) ) { addr->supernet = 1; + printf("send getpeers to %s\n",addr->ipaddr); iguana_send_supernet(coin,addr,"{\"agent\":\"SuperNET\",\"method\":\"getpeers\"}"); } if ( vers->nStartingHeight > coin->longestchain )