Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4d858967a6
  1. 2
      basilisk/basilisk.c
  2. 2
      iguana/iguana_peers.c

2
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 )

2
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<len-sizeof(struct iguana_msghdr); i++)
printf("%02x",serialized[i+sizeof(struct iguana_msghdr)]);
printf(" >>>>>>> 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 )

Loading…
Cancel
Save