Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
124acc7026
  1. 5
      basilisk/basilisk.c
  2. 4
      basilisk/basilisk_ping.c

5
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);
}
}

4
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);
}

Loading…
Cancel
Save