TODO: from v23 ("addresses" and "reqSigs" deprecated) this method should be refactored to remove the `include_addresses` option this method can also be combined with `ScriptToUniv` as they will overlap
| 214 | // TODO: from v23 ("addresses" and "reqSigs" deprecated) this method should be refactored to remove the `include_addresses` option |
| 215 | // this method can also be combined with `ScriptToUniv` as they will overlap |
| 216 | void ScriptPubKeyToUniv(const CScript& scriptPubKey, |
| 217 | UniValue& out, bool fIncludeHex, bool include_addresses) |
| 218 | { |
| 219 | SidechainScriptPubKeyToJSON(scriptPubKey, out, fIncludeHex, include_addresses, false); |
| 220 | |
| 221 | uint256 pegout_chain; |
| 222 | CScript pegout_scriptpubkey; |
| 223 | if (scriptPubKey.IsPegoutScript(pegout_chain, pegout_scriptpubkey)) { |
| 224 | out.pushKV("pegout_chain", pegout_chain.GetHex()); |
| 225 | SidechainScriptPubKeyToJSON(pegout_scriptpubkey, out, fIncludeHex, include_addresses, true); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex, int serialize_flags, const CTxUndo* txundo, TxVerbosity verbosity) |
| 230 | { |