diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index a18c2b329..cd264c13e 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -799,7 +799,7 @@ void basilisks_loop(void *arg) } } //portable_mutex_unlock(&myinfo->allcoins_mutex); - if ( (rand() % 10) == 0 && myinfo->RELAYID >= 0 ) + if ( myinfo->RELAYID >= 0 ) { basilisk_ping_send(myinfo,btcd); } @@ -828,7 +828,10 @@ void basilisks_loop(void *arg) } portable_mutex_unlock(&myinfo->messagemutex); if ( myinfo->RELAYID >= 0 ) + { usleep(100000); + fprintf(stderr,"."); + } else sleep(1); } } diff --git a/basilisk/basilisk_ping.c b/basilisk/basilisk_ping.c index 06e2cca02..1621c9ba2 100755 --- a/basilisk/basilisk_ping.c +++ b/basilisk/basilisk_ping.c @@ -219,8 +219,8 @@ 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); } - printf("my RELAYID.%d\n",myinfo->RELAYID); + printf("my RELAYID.%d of %d\n",myinfo->RELAYID,myinfo->numrelays); }