mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 10:30:41 +01:00
refactor: merge ScriptPubKeyToUniv & ScriptToUniv into one function
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user