diff options
author | Michael Dietz <michael.dietz@waya.ai> | 2021-05-10 15:14:16 -0400 |
---|---|---|
committer | Michael Dietz <michael.dietz@waya.ai> | 2021-09-24 14:22:53 -0500 |
commit | d64deac7b823a0eba97ab3a3686054eefe330d3c (patch) | |
tree | 64d3de6c88d7e33b77f79bfae9a4dfe939e5d68c /src/core_io.h | |
parent | 8721638daa8502c7f8de5ae24a9393d7290a2ce5 (diff) |
refactor: share logic between ScriptPubKeyToUniv and ScriptToUniv
Diffstat (limited to 'src/core_io.h')
-rw-r--r-- | src/core_io.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |