From 5d2237007306adf6a86253d952a9a03d50fcc83b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Jun 2016 10:12:57 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 899d40d84..819c20d04 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -535,7 +535,7 @@ int32_t basilisk_relay_unping(struct supernet_info *myinfo,uint8_t *data,int32_t datalen = iguana_rwnum(1,&data[datalen],sizeof(ipbits),&ipbits); pingdelay = data[datalen++]; if ( myinfo->relays[i].ipbits != ipbits ) - printf("unping warning reported.[%d] ipbits %u != %u\n",i,myinfo->relays[i].ipbits,ipbits); + printf("unping warning reported.[%d] ipbits %08x != %08x\n",i,myinfo->relays[i].ipbits,ipbits); for (j=0; jnumrelays; j++) if ( myinfo->relays[j].ipbits == ipbits ) { @@ -805,7 +805,7 @@ void basilisks_loop(void *arg) basilisk_respond_ping(myinfo,myinfo->myaddr.myipbits,&data[sizeof(struct iguana_msghdr)],datalen); else if ( (addr= iguana_peerfindipbits(btcd,rp->ipbits,1)) != 0 && addr->usock >= 0 ) { - if ( iguana_queue_send(addr,0,&data[sizeof(struct iguana_msghdr)],"SuperNETPIN",datalen) <= 0 ) + if ( iguana_queue_send(addr,0,data,"SuperNETPIN",datalen) <= 0 ) printf("error sending %d to (%s)\n",datalen,addr->ipaddr); else printf("sent %d to (%s)\n",datalen,addr->ipaddr); }