Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
48a8f267bd
  1. 1
      iguana/SuperNET.c
  2. 4
      iguana/iguana_peers.c

1
iguana/SuperNET.c

@ -505,6 +505,7 @@ int32_t iguana_send_supernet(struct iguana_info *coin,struct iguana_peer *addr,c
printf(" cant decrypt cipherlen.%d otherpriv.%llx pub.%llx\n",cipherlen,(long long)testpriv.txid,(long long)pubkey.txid);
printf("encrypted mypriv.%llx destpub.%llx\n",(long long)privkey.txid,(long long)destpub.txid);
} // else printf("decrypted\n");
printf("send to (%s)\n",addr->ipaddr);
qlen = iguana_queue_send(addr,delaymillis,&cipher[-sizeof(struct iguana_msghdr)],"SuperNETb",cipherlen,0,0);
if ( ptr != 0 )
free(ptr);

4
iguana/iguana_peers.c

@ -1165,7 +1165,7 @@ void iguana_dedicatedloop(struct supernet_info *myinfo,struct iguana_info *coin,
}
if ( flag != 0 )
run = 0;
else if ( addr->supernet != 0 && time(NULL) > lastping+SUPERNET_PINGGAP )
else if ( 0 && addr->supernet != 0 && time(NULL) > lastping+SUPERNET_PINGGAP )
{
iguana_send_supernet(coin,addr,SUPERNET_GETPEERSTR,0);
lastping = (uint32_t)time(NULL);
@ -1290,7 +1290,7 @@ void iguana_peersloop(void *ptr)
}
if ( flag == 0 )
{
if ( time(NULL) > lastping+1 && addr->supernet != 0 )
if ( 0 && time(NULL) > lastping+1 && addr->supernet != 0 )
iguana_send_supernet(coin,addr,SUPERNET_GETPEERSTR,0);
usleep(1000);
}

Loading…
Cancel
Save