diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-10-22 12:28:14 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-10-22 12:32:16 +0200 |
commit | fa4ec1c0bdaef9f082a6661d7faf16149774e145 (patch) | |
tree | a147b36362e1e1e422d45f9f1083edbcf5b671d3 /src/primitives/transaction.h | |
parent | faeb9a575367119dbff60c35fa2c13547718e179 (diff) |
Make GenTxid boolean constructor private
Diffstat (limited to 'src/primitives/transaction.h')
-rw-r--r-- | src/primitives/transaction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index d7a85015ef..947c1c60bb 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -391,8 +391,9 @@ class GenTxid { bool m_is_wtxid; uint256 m_hash; -public: GenTxid(bool is_wtxid, const uint256& hash) : m_is_wtxid(is_wtxid), m_hash(hash) {} + +public: static GenTxid Txid(const uint256& hash) { return GenTxid{false, hash}; } static GenTxid Wtxid(const uint256& hash) { return GenTxid{true, hash}; } bool IsWtxid() const { return m_is_wtxid; } |