Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
401c409809
  1. 7
      confs/BTCD_peers.txt
  2. 3
      iguana/iguana_msg.c

7
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

3
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 )

Loading…
Cancel
Save