Skip to content

Commit 3f08934

Browse files
committed
rest: Pass in NodeContext to rest_block
1 parent 7be0671 commit 3f08934

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rest.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ static bool rest_headers(const std::any& context,
231231
}
232232
}
233233

234-
static bool rest_block(HTTPRequest* req,
234+
static bool rest_block(const std::any& context,
235+
HTTPRequest* req,
235236
const std::string& strURIPart,
236237
bool showTxDetails)
237238
{
@@ -297,12 +298,12 @@ static bool rest_block(HTTPRequest* req,
297298

298299
static bool rest_block_extended(const std::any& context, HTTPRequest* req, const std::string& strURIPart)
299300
{
300-
return rest_block(req, strURIPart, true);
301+
return rest_block(context, req, strURIPart, true);
301302
}
302303

303304
static bool rest_block_notxdetails(const std::any& context, HTTPRequest* req, const std::string& strURIPart)
304305
{
305-
return rest_block(req, strURIPart, false);
306+
return rest_block(context, req, strURIPart, false);
306307
}
307308

308309
// A bit of a hack - dependency on a function defined in rpc/blockchain.cpp

0 commit comments

Comments
 (0)