Merge 9887fc7898 into merged_master (Bitcoin PR bitcoin/bitcoin#26758)

This commit is contained in:
Byron Hambly 2025-04-01 21:20:49 +02:00
commit feb8f8cf2b
12 changed files with 19 additions and 17 deletions

View file

@ -822,7 +822,7 @@ static UniValue CallRPC(BaseRequestHandler* rh, const std::string& strMethod, co
UniValue valReply(UniValue::VSTR);
if (!valReply.read(response.body))
throw std::runtime_error("couldn't parse reply from server");
const UniValue reply = rh->ProcessReply(valReply);
UniValue reply = rh->ProcessReply(valReply);
if (reply.empty())
throw std::runtime_error("expected reply to have result, error and id properties");