mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-09 01:40:27 +02:00
rest: bugfix, fix crash error when calling /deploymentinfo
Github-Pull: #27853
Rebased-From: ce887eaf49
This commit is contained in:
@ -628,7 +628,7 @@ static bool rest_deploymentinfo(const std::any& context, HTTPRequest* req, const
|
||||
return RESTERR(req, HTTP_BAD_REQUEST, "Block not found");
|
||||
}
|
||||
|
||||
jsonRequest.params.pushKV("blockhash", hash_str);
|
||||
jsonRequest.params.push_back(hash_str);
|
||||
}
|
||||
|
||||
req->WriteHeader("Content-Type", "application/json");
|
||||
|
Reference in New Issue
Block a user