Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
355c8e9a03
  1. 4
      basilisk/basilisk.c
  2. 6
      basilisk/basilisk_ping.c
  3. 2
      iguana/confs/BTCD_peers.txt
  4. 2
      iguana/iguana_peers.c

4
basilisk/basilisk.c

@ -311,7 +311,7 @@ struct basilisk_item *basilisk_issueremote(struct supernet_info *myinfo,struct i
{
if ( pending->numresults >= pending->numrequired )//|| (retstr= pending->retstr) != 0 )
{
printf("numresults.%d vs numrequired.%d\n",pending->numresults,pending->numrequired);
//printf("numresults.%d vs numrequired.%d\n",pending->numresults,pending->numrequired);
break;
}
usleep(10000);
@ -813,7 +813,7 @@ void basilisks_loop(void *arg)
coin->lastunspentsupdate = (uint32_t)time(NULL);
}
}
//if ( (myinfo->RELAYID >= 0 || time(NULL) < myinfo->DEXactive) )
if ( myinfo->RELAYID < 0 )
basilisk_requests_poll(myinfo);
now = (uint32_t)time(NULL);
portable_mutex_lock(&myinfo->messagemutex);

6
basilisk/basilisk_ping.c

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

2
iguana/confs/BTCD_peers.txt

@ -1,7 +1,5 @@
89.248.160.237
89.248.160.238
89.248.160.239
89.248.160.240
85.25.217.233
65.15.37.140
62.75.145.171

2
iguana/iguana_peers.c

@ -725,7 +725,7 @@ void iguana_startconnection(void *arg)
if ( addr->usock < 0 || (coin->peers != 0 && coin->peers->shuttingdown != 0) )
{
strcpy(ipaddr,addr->ipaddr);
printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock);
//printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock);
iguana_iAkill(coin,addr,1);
}
else

Loading…
Cancel
Save