Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
46e99fc980
  1. 8
      basilisk/basilisk_ping.c
  2. 1
      iguana/iguana_peers.c

8
basilisk/basilisk_ping.c

@ -218,9 +218,13 @@ void basilisk_ping_send(struct supernet_info *myinfo,struct iguana_info *btcd)
{ {
if ( iguana_queue_send(addr,0,myinfo->pingbuf,"SuperNETPIN",datalen) <= 0 ) if ( iguana_queue_send(addr,0,myinfo->pingbuf,"SuperNETPIN",datalen) <= 0 )
printf("error sending %d to (%s)\n",datalen,addr->ipaddr); printf("error sending %d to (%s)\n",datalen,addr->ipaddr);
else printf("(%s) ",addr->ipaddr); else printf("+(%s) ",addr->ipaddr);
}
else
{
printf("-(%s) ",addr->ipaddr);
iguana_launchpeer(btcd,ipaddr);
} }
else iguana_launchpeer(btcd,ipaddr);
} }
printf("my RELAYID.%d\n",myinfo->RELAYID); printf("my RELAYID.%d\n",myinfo->RELAYID);
} }

1
iguana/iguana_peers.c

@ -820,6 +820,7 @@ void iguana_launchpeer(struct iguana_info *coin,char *ipaddr)
return; return;
if ( (addr= iguana_peerslot(coin,ipbits,0)) != 0 ) if ( (addr= iguana_peerslot(coin,ipbits,0)) != 0 )
iguana_launch(coin,"connection",iguana_startconnection,addr,IGUANA_CONNTHREAD); iguana_launch(coin,"connection",iguana_startconnection,addr,IGUANA_CONNTHREAD);
else printf("skip %s, ",ipaddr);
} }
void *iguana_iAddriterator(struct iguana_info *coin,struct iguana_iAddr *iA) void *iguana_iAddriterator(struct iguana_info *coin,struct iguana_iAddr *iA)

Loading…
Cancel
Save