diff options
author | Michael Dietz <michael.dietz@waya.ai> | 2021-09-28 19:04:07 -0500 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-03-30 20:00:27 +0100 |
commit | 8b9efebb0a1a1e6b3a6de88cef57454f1a79eb04 (patch) | |
tree | fffc1b81b299f040eb11f42cd7aa08666408f7cd /src/rest.cpp | |
parent | 22f25a61168f261dff06fb66737be55eab290c5b (diff) | |
download | bitcoin-8b9efebb0a1a1e6b3a6de88cef57454f1a79eb04.tar.xz |
refactor: use named args when ScriptToUniv or TxToUniv are invoked
Diffstat (limited to 'src/rest.cpp')
-rw-r--r-- | src/rest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index 6e9e7092e4..d59b6d1c13 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -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); |