diff options
author | Carl Dong <contact@carldong.me> | 2020-09-02 17:24:03 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-04-05 11:14:33 -0400 |
commit | 3f0893479908ca28d6127c8d0ada30737cb830be (patch) | |
tree | cdb805cf10e06d334e9d96ba0de3054c8f6d4eff /src | |
parent | 7be0671b950842fc3a17641a4a21501de0a800b5 (diff) |
rest: Pass in NodeContext to rest_block
Diffstat (limited to 'src')
-rw-r--r-- | src/rest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index aa97470ca7..1093bf46ce 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -231,7 +231,8 @@ static bool rest_headers(const std::any& context, } } -static bool rest_block(HTTPRequest* req, +static bool rest_block(const std::any& context, + HTTPRequest* req, const std::string& strURIPart, bool showTxDetails) { @@ -297,12 +298,12 @@ static bool rest_block(HTTPRequest* req, static bool rest_block_extended(const std::any& context, HTTPRequest* req, const std::string& strURIPart) { - return rest_block(req, strURIPart, true); + return rest_block(context, req, strURIPart, true); } static bool rest_block_notxdetails(const std::any& context, HTTPRequest* req, const std::string& strURIPart) { - return rest_block(req, strURIPart, false); + return rest_block(context, req, strURIPart, false); } // A bit of a hack - dependency on a function defined in rpc/blockchain.cpp |