diff options
author | Michael Dietz <michael.dietz@waya.ai> | 2021-09-28 18:11:49 -0500 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-03-30 20:00:23 +0100 |
commit | 828a094ecfbf93ad9e4bb83b85a519f7416ff3fb (patch) | |
tree | b8d34208bc503dd6d9cd23e19feb847b3993f874 /src/rest.cpp | |
parent | 74b011bbfa3b607606cc7c0ce6e2d22cfd07605a (diff) |
refactor: merge ScriptPubKeyToUniv & ScriptToUniv into one function
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 4b6bb7ecaf..6e9e7092e4 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -855,7 +855,7 @@ static bool rest_getutxos(const std::any& context, HTTPRequest* req, const std:: // include the script in a json output UniValue o(UniValue::VOBJ); - ScriptPubKeyToUniv(coin.out.scriptPubKey, o, true); + ScriptToUniv(coin.out.scriptPubKey, /*out=*/o, /*include_hex=*/true, /*include_address=*/true); utxo.pushKV("scriptPubKey", o); utxos.push_back(utxo); } |