From 20571acb9428c1674cbc6cbd9b9ceaabbc856a77 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 20 May 2017 13:54:06 +0300 Subject: [PATCH] Test --- basilisk/basilisk_swap.c | 2 ++ basilisk/smartaddress.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 2777b4f13..9883f5a76 100755 --- a/basilisk/basilisk_swap.c +++ b/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 ) { diff --git a/basilisk/smartaddress.c b/basilisk/smartaddress.c index a89bf248d..8fa83623b 100755 --- a/basilisk/smartaddress.c +++ b/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); }