diff --git a/src/rest.cpp b/src/rest.cpp --- a/src/rest.cpp +++ b/src/rest.cpp @@ -24,6 +24,8 @@ #include #include +#include + #include #include @@ -246,8 +248,9 @@ } } -static bool rest_block(const Config &config, HTTPRequest *req, - const std::string &strURIPart, bool showTxDetails) { +static bool rest_block(const Config &config, const std::any &context, + HTTPRequest *req, const std::string &strURIPart, + bool showTxDetails) { if (!CheckWarmup(req)) { return false; } @@ -325,13 +328,13 @@ static bool rest_block_extended(Config &config, const std::any &context, HTTPRequest *req, const std::string &strURIPart) { - return rest_block(config, req, strURIPart, true); + return rest_block(config, context, req, strURIPart, true); } static bool rest_block_notxdetails(Config &config, const std::any &context, HTTPRequest *req, const std::string &strURIPart) { - return rest_block(config, req, strURIPart, false); + return rest_block(config, context, req, strURIPart, false); } static bool rest_chaininfo(Config &config, const std::any &context,