diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 907c9cf42..341bda909 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -794,7 +794,7 @@ void basilisks_loop(void *arg) rp = &myinfo->relays[i]; addr = 0; if ( rp->ipbits == myinfo->myaddr.myipbits ) - basilisk_msgprocess(myinfo,0,0,"PIN",0,&data[sizeof(struct iguana_msghdr)],datalen); + 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 ) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index f771f606b..d4d00fdec 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -463,6 +463,8 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s remains = len; if ( strncmp(cmdstr+1,"uperNET",strlen("uperNET")) == 0 || strncmp(cmdstr+1,"uperNet",strlen("uperNet")) == 0 ) { + for (i=0; i>>>>>> send.(%s) crc.%x %d bytes to %s:%u supernet.%d\n",cmdstr,calc_crc32(0,serialized,len),len,addr->ipaddr,addr->A.port,addr->supernet); } else if ( addr->msgcounts.verack == 0 && (strcmp(cmdstr,"version") != 0 && strcmp(cmdstr,"ConnectTo") != 0 && strcmp(cmdstr,"verack") != 0) != 0 )