|
|
@ -43,7 +43,7 @@ bool validate_address(connsock_t *cs, const char *address, bool *script, bool *s |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
snprintf(rpc_req, 128, "{\"method\": \"validateaddress\", \"params\": [\"%s\"]}\n", address); |
|
|
|
snprintf(rpc_req, 128, "{\"method\": \"validateaddress\", \"params\": [\"%s\"]}\n", address); |
|
|
|
val = json_rpc_call(cs, rpc_req); |
|
|
|
val = json_rpc_response(cs, rpc_req); |
|
|
|
if (!val) { |
|
|
|
if (!val) { |
|
|
|
/* May get a parse error with an invalid address */ |
|
|
|
/* May get a parse error with an invalid address */ |
|
|
|
LOGNOTICE("%s:%s Failed to get valid json response to validate_address %s", |
|
|
|
LOGNOTICE("%s:%s Failed to get valid json response to validate_address %s", |
|
|
|