diff --git a/src/bitcoin.c b/src/bitcoin.c index 05ceff0e..b114fd06 100644 --- a/src/bitcoin.c +++ b/src/bitcoin.c @@ -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); - val = json_rpc_call(cs, rpc_req); + val = json_rpc_response(cs, rpc_req); if (!val) { /* May get a parse error with an invalid address */ LOGNOTICE("%s:%s Failed to get valid json response to validate_address %s",