Skip to content

Commit

Permalink
rest: bugfix, fix crash error when calling /deploymentinfo
Browse files Browse the repository at this point in the history
Github-Pull: #27853
Rebased-From: ce887ea
  • Loading branch information
brunoerg authored and fanquake committed Jun 15, 2023
1 parent 6f7a0ae commit 72ead86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 72ead86

Please sign in to comment.