From 3908dc0819ef7576604db77cd08a4baad0c39cfb Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Apr 2018 15:16:11 +0300 Subject: [PATCH] Limit changing to getaddressinfo to BTC --- iguana/exchanges/LP_rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 626fba0a0..e8dc6f5ef 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -348,7 +348,7 @@ cJSON *LP_validateaddress(char *symbol,char *address) strcpy(coin->validateaddress,"validateaddress"); if ( (retjson= bitcoin_json(coin,coin->validateaddress,buf)) != 0 ) { - if ( jobj(retjson,"error") == 0 && jobj(retjson,"ismine") == 0 && strcmp(coin->validateaddress,"validateaddress") == 0 ) + if ( strcmp(coin->symbol,"BTC") == 0 && jobj(retjson,"error") == 0 && jobj(retjson,"ismine") == 0 && strcmp(coin->validateaddress,"validateaddress") == 0 ) { printf("autochange %s validateaddress -> getaddressinfo\n",coin->symbol); strcpy(coin->validateaddress,"getaddressinfo");