diff options
author | brunoerg <brunoely.gc@gmail.com> | 2023-06-10 23:26:24 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2023-06-12 10:24:14 -0300 |
commit | ce887eaf4917c337b21aa2e7811804ce003d36be (patch) | |
tree | da519486fa03b5db58cc3e84c1eb673f446a6518 /src/rest.cpp | |
parent | 153a6882f42fff3fdc63bf770d4c86a62c46c448 (diff) | |
download | bitcoin-ce887eaf4917c337b21aa2e7811804ce003d36be.tar.xz |
rest: bugfix, fix crash error when calling `/deploymentinfo`
Diffstat (limited to 'src/rest.cpp')
-rw-r--r-- | src/rest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index c9e61d70bd..ba149c1a9e 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -627,7 +627,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"); |