Browse Source
Merge pull request #801 from jl777/jl777
Limit changing to getaddressinfo to BTC
patch-3
jl777
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
iguana/exchanges/LP_rpc.c
|
@ -348,7 +348,7 @@ cJSON *LP_validateaddress(char *symbol,char *address) |
|
|
strcpy(coin->validateaddress,"validateaddress"); |
|
|
strcpy(coin->validateaddress,"validateaddress"); |
|
|
if ( (retjson= bitcoin_json(coin,coin->validateaddress,buf)) != 0 ) |
|
|
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); |
|
|
printf("autochange %s validateaddress -> getaddressinfo\n",coin->symbol); |
|
|
strcpy(coin->validateaddress,"getaddressinfo"); |
|
|
strcpy(coin->validateaddress,"getaddressinfo"); |
|
|