Browse Source

Test

etomic
jl777 8 years ago
parent
commit
20571acb94
  1. 2
      basilisk/basilisk_swap.c
  2. 4
      basilisk/smartaddress.c

2
basilisk/basilisk_swap.c

@ -2449,10 +2449,12 @@ void basilisk_psockinit(struct supernet_info *myinfo,struct basilisk_swap *swap,
printf("KVsearch.(%s) -> (%s) connected.%d socks.(%d %d) amlp.%d\n",keystr,retstr,swap->connected,swap->pushsock,swap->subsock,amlp);
free(retstr);
}
printf("connected.%d amlp.%d subsock.%d pushsock.%d\n",swap->connected,amlp,subsock,pushsock);
if ( swap->connected <= 0 && amlp != 0 && subsock >= 0 && pushsock >= 0 )
{
if ( (retstr= _dex_psock(myinfo,"{}")) != 0 )
{
printf("psock returns.(%s)\n",retstr);
// {"result":"success","pushaddr":"tcp://5.9.102.210:30002","subaddr":"tcp://5.9.102.210:30003","randipbits":3606291758,"coin":"KMD","tag":"6952562460568228137"}
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{

4
basilisk/smartaddress.c

@ -298,8 +298,8 @@ int32_t smartaddress_pubkey(struct supernet_info *myinfo,char *typestr,double *b
break;
}
portable_mutex_unlock(&myinfo->smart_mutex);
char str[65]; if ( retval < 0 )
printf("smartaddress_pubkey no match for %s\n",bits256_str(str,pubkey));
//char str[65]; if ( retval < 0 )
// printf("smartaddress_pubkey no match for %s\n",bits256_str(str,pubkey));
return(retval);
}

Loading…
Cancel
Save