diff options
author | Michael Dietz <michael.dietz@waya.ai> | 2021-09-28 18:11:49 -0500 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-03-30 20:00:23 +0100 |
commit | 828a094ecfbf93ad9e4bb83b85a519f7416ff3fb (patch) | |
tree | b8d34208bc503dd6d9cd23e19feb847b3993f874 /src/core_io.h | |
parent | 74b011bbfa3b607606cc7c0ce6e2d22cfd07605a (diff) |
refactor: merge ScriptPubKeyToUniv & ScriptToUniv into one function
Diffstat (limited to 'src/core_io.h')
-rw-r--r-- | src/core_io.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core_io.h b/src/core_io.h index 69b9ac3ebd..9bdbd7c17f 100644 --- a/src/core_io.h +++ b/src/core_io.h @@ -53,8 +53,7 @@ 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 include_hex, bool include_address = true); -void ScriptToUniv(const CScript& script, UniValue& out); +void ScriptToUniv(const CScript& script, UniValue& out, bool include_hex = true, bool include_address = false); void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex = true, int serialize_flags = 0, const CTxUndo* txundo = nullptr, TxVerbosity verbosity = TxVerbosity::SHOW_DETAILS); #endif // BITCOIN_CORE_IO_H |