mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
rest: Pass in NodeContext to rest_block
This commit is contained in:
parent
7be0671b95
commit
3f08934799
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue