Merge 41720a1f54 into merged_master (Bitcoin PR bitcoin/bitcoin#24786)

This commit is contained in:
James Dorfman 2024-07-29 19:42:59 +00:00
commit 38cf680443
8 changed files with 19 additions and 19 deletions

View file

@ -674,7 +674,7 @@ static bool rest_tx(const std::any& context, HTTPRequest* req, const std::string
const NodeContext* const node = GetNodeContext(context, req);
if (!node) return false;
uint256 hashBlock = uint256();
const CTransactionRef tx = GetTransaction(/* block_index */ nullptr, node->mempool.get(), hash, Params().GetConsensus(), hashBlock);
const CTransactionRef tx = GetTransaction(/*block_index=*/nullptr, node->mempool.get(), hash, Params().GetConsensus(), hashBlock);
if (!tx) {
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not found");
}