From 40123a20af49a7f0bf3290ab2e135bfda3e27f71 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 9 Mar 2018 15:26:13 +0200 Subject: [PATCH] SMART support --- iguana/exchanges/LP_bitcoin.c | 2 +- iguana/exchanges/LP_rpc.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index 74a524a30..1559591b7 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -2317,7 +2317,7 @@ int32_t bitcoin_wif2addr(void *ctx,char *symbol,uint8_t wiftaddr,uint8_t taddr,u if ( (len= bitcoin_wif2priv(symbol,wiftaddr,&addrtype,&privkey,wifstr)) == sizeof(privkey) ) { bitcoin_priv2pub(ctx,symbol,pubkey33,coinaddr,privkey,taddr,pubtype); - printf("priv2pub returns.(%s)\n",coinaddr); + //printf("priv2pub returns.(%s)\n",coinaddr); return(0); } else printf("wif2priv returns len.%d\n",len); return(-1); diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index abf082aa4..a1b34d3b3 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -541,7 +541,7 @@ int32_t LP_importaddress(char *symbol,char *address) coin = LP_coinfind(symbol); if ( coin == 0 ) return(-3); - printf("import.(%s %s)\n",symbol,address); + //printf("import.(%s %s)\n",symbol,address); if ( coin->electrum != 0 ) { /*if ( (retjson= electrum_address_subscribe(symbol,coin->electrum,&retjson,address)) != 0 ) @@ -555,7 +555,7 @@ int32_t LP_importaddress(char *symbol,char *address) { if ( (validatejson= LP_validateaddress(symbol,address)) != 0 ) { - printf("validated.(%s)\n",jprint(validatejson,0)); + //printf("validated.(%s)\n",jprint(validatejson,0)); if ( (isvalid= is_cJSON_True(jobj(validatejson,"isvalid")) != 0) != 0 ) { if ( is_cJSON_True(jobj(validatejson,"iswatchonly")) != 0 || is_cJSON_True(jobj(validatejson,"ismine")) != 0 ) @@ -563,7 +563,7 @@ int32_t LP_importaddress(char *symbol,char *address) } free_json(validatejson); } - printf("%s (%s) isvalid.%d doneflag.%d\n",symbol,address,isvalid,doneflag); + //printf("%s (%s) isvalid.%d doneflag.%d\n",symbol,address,isvalid,doneflag); if ( isvalid == 0 ) return(-1); if ( doneflag != 0 ) @@ -571,7 +571,7 @@ int32_t LP_importaddress(char *symbol,char *address) sprintf(buf,"[\"%s\", \"%s\", false]",address,address); if ( (retstr= bitcoind_passthru(symbol,coin->serverport,coin->userpass,"importaddress",buf)) != 0 ) { - printf("importaddress.(%s %s) -> (%s)\n",symbol,address,retstr); + //printf("importaddress.(%s %s) -> (%s)\n",symbol,address,retstr); free(retstr); } //else printf("importaddress.(%s %s)\n",symbol,address); return(1);