Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
478dce63d0
  1. 2
      iguana/iguana_init.c
  2. 4
      iguana/iguana_peers.c

2
iguana/iguana_init.c

@ -316,7 +316,7 @@ void iguana_parseline(struct supernet_info *myinfo,struct iguana_info *coin,int3
{ {
addr = &coin->peers->active[m++]; addr = &coin->peers->active[m++];
iguana_initpeer(coin,addr,(uint32_t)calc_ipbits(line)); iguana_initpeer(coin,addr,(uint32_t)calc_ipbits(line));
printf("call initpeer.(%s)\n",addr->ipaddr); //printf("call initpeer.(%s)\n",addr->ipaddr);
iguana_launch(coin,"connection",iguana_startconnection,addr,IGUANA_CONNTHREAD); iguana_launch(coin,"connection",iguana_startconnection,addr,IGUANA_CONNTHREAD);
} //else } //else
#endif #endif

4
iguana/iguana_peers.c

@ -898,7 +898,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr)
printf("%s possible peer.(%s) %x already there\n",coin->symbol,ipaddr,(uint32_t)coin->peers->active[i].ipbits); printf("%s possible peer.(%s) %x already there\n",coin->symbol,ipaddr,(uint32_t)coin->peers->active[i].ipbits);
return(0); return(0);
} }
printf("%s Q possible.(%s)\n",coin->symbol,ipaddr); //printf("%s Q possible.(%s)\n",coin->symbol,ipaddr);
queue_enqueue("possibleQ",&coin->possibleQ,queueitem(ipaddr),1); queue_enqueue("possibleQ",&coin->possibleQ,queueitem(ipaddr),1);
return((uint32_t)time(NULL)); return((uint32_t)time(NULL));
} }
@ -934,7 +934,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr)
ipaddr[i] = 0; ipaddr[i] = 0;
break; break;
} }
printf("%s check possible peer.(%s)\n",coin->symbol,ipaddr); //printf("%s check possible peer.(%s)\n",coin->symbol,ipaddr);
if ( (ipbits= calc_ipbits(ipaddr)) != 0 ) if ( (ipbits= calc_ipbits(ipaddr)) != 0 )
{ {
expand_ipbits(checkaddr,ipbits); expand_ipbits(checkaddr,ipbits);

Loading…
Cancel
Save