From fa4ec1c0bdaef9f082a6661d7faf16149774e145 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 22 Oct 2021 12:28:14 +0200 Subject: Make GenTxid boolean constructor private --- src/primitives/transaction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/primitives') 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; } -- cgit v1.2.3