mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 13:12:22 +02:00
refactor: use named args when ScriptToUniv or TxToUniv are invoked
This commit is contained in:
@@ -670,7 +670,7 @@ static bool rest_tx(const std::any& context, HTTPRequest* req, const std::string
|
||||
|
||||
case RetFormat::JSON: {
|
||||
UniValue objTx(UniValue::VOBJ);
|
||||
TxToUniv(*tx, hashBlock, objTx);
|
||||
TxToUniv(*tx, /*block_hash=*/hashBlock, /*entry=*/ objTx);
|
||||
std::string strJSON = objTx.write() + "\n";
|
||||
req->WriteHeader("Content-Type", "application/json");
|
||||
req->WriteReply(HTTP_OK, strJSON);
|
||||
|
Reference in New Issue
Block a user