Browse Source

test

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

2
basilisk/basilisk.c

@ -806,10 +806,10 @@ void basilisks_loop(void *arg)
//portable_mutex_unlock(&myinfo->allcoins_mutex);
if ( (rand() % 10) == 0 && myinfo->RELAYID >= 0 )
{
printf("my RELAYID.%d\n",myinfo->RELAYID);
if ( myinfo->RELAYID >= 0 )
basilisk_specialrelay(myinfo);
basilisk_ping_send(myinfo,btcd);
printf("my RELAYID.%d\n",myinfo->RELAYID);
}
}
HASH_ITER(hh,myinfo->allcoins,coin,tmpcoin)

2
basilisk/basilisk_ping.c

@ -215,7 +215,7 @@ 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("sent %d to (%s)\n",datalen,addr->ipaddr);
else printf("(%s) ",addr->ipaddr);
}
}
}

Loading…
Cancel
Save