Skip to content

Commit

Permalink
Fixed rest for 0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
lostystyg committed Jun 23, 2022
1 parent 740d800 commit 97cf205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,13 @@ static double getEmission(int height)
return emission;
}

static bool rest_emission(HTTPRequest* req, const std::string& strURIPart)
static bool rest_emission(const util::Ref& context, HTTPRequest* req, const std::string& strURIPart)
{
if (!CheckWarmup(req))
return false;

req->WriteHeader("Content-Type", "text/plain");
req->WriteReply(HTTP_OK, std::to_string(getEmission(chainActive.Height())));
req->WriteReply(HTTP_OK, std::to_string(getEmission(ChainActive().Height())));
return true;
}

Expand Down

0 comments on commit 97cf205

Please sign in to comment.