From 72ead8699fadee4019d324763c05742b7d8880a9 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Sat, 10 Jun 2023 23:26:24 -0300 Subject: [PATCH] rest: bugfix, fix crash error when calling `/deploymentinfo` Github-Pull: #27853 Rebased-From: ce887eaf4917c337b21aa2e7811804ce003d36be --- src/rest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest.cpp b/src/rest.cpp index e46406f1ade45..feb4ad70832f7 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -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");