mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
refactor: merge ScriptPubKeyToUniv & ScriptToUniv into one function
This commit is contained in:
parent
74b011bbfa
commit
828a094ecf
6 changed files with 17 additions and 23 deletions
|
|
@ -1026,7 +1026,7 @@ static RPCHelpMan gettxout()
|
|||
}
|
||||
ret.pushKV("value", ValueFromAmount(coin.out.nValue));
|
||||
UniValue o(UniValue::VOBJ);
|
||||
ScriptPubKeyToUniv(coin.out.scriptPubKey, o, true);
|
||||
ScriptToUniv(coin.out.scriptPubKey, /*out=*/o, /*include_hex=*/true, /*include_address=*/true);
|
||||
ret.pushKV("scriptPubKey", o);
|
||||
ret.pushKV("coinbase", (bool)coin.fCoinBase);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue