Browse Source

Prevent old style addresses in withdraw of BCH

pass-iguana-arg
jl777 7 years ago
parent
commit
a3b0e276a0
  1. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_rpc.c

@ -401,6 +401,8 @@ int32_t LP_address_isvalid(char *symbol,char *address)
int32_t isvalid = 0; cJSON *retjson;
if ( symbol == 0 || symbol[0] == 0 )
return(0);
if ( strcmp(symbol,"BCH") == 0 && (address[0] == '1' || address[0] == '3') )
return(-1);
if ( (retjson= LP_validateaddress(symbol,address)) != 0 )
{
if ( jobj(retjson,"isvalid") != 0 && is_cJSON_True(jobj(retjson,"isvalid")) != 0 )

Loading…
Cancel
Save