From d64deac7b823a0eba97ab3a3686054eefe330d3c Mon Sep 17 00:00:00 2001 From: Michael Dietz Date: Mon, 10 May 2021 15:14:16 -0400 Subject: refactor: share logic between ScriptPubKeyToUniv and ScriptToUniv --- src/core_io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core_io.h') diff --git a/src/core_io.h b/src/core_io.h index 01340ae2ee..dec0297637 100644 --- a/src/core_io.h +++ b/src/core_io.h @@ -44,8 +44,8 @@ UniValue ValueFromAmount(const CAmount amount); std::string FormatScript(const CScript& script); std::string EncodeHexTx(const CTransaction& tx, const int serializeFlags = 0); std::string SighashToStr(unsigned char sighash_type); -void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex); -void ScriptToUniv(const CScript& script, UniValue& out, bool include_address); +void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex, bool include_address = true); +void ScriptToUniv(const CScript& script, UniValue& out); void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex = true, int serialize_flags = 0, const CTxUndo* txundo = nullptr); #endif // BITCOIN_CORE_IO_H -- cgit v1.2.3