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/txrequest.cpp | |
parent | faeb9a575367119dbff60c35fa2c13547718e179 (diff) | |
download | bitcoin-fa4ec1c0bdaef9f082a6661d7faf16149774e145.tar.xz |
Make GenTxid boolean constructor private
Diffstat (limited to 'src/txrequest.cpp')
-rw-r--r-- | src/txrequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txrequest.cpp b/src/txrequest.cpp index f8d7a1ece8..7d478a5b26 100644 --- a/src/txrequest.cpp +++ b/src/txrequest.cpp @@ -300,7 +300,7 @@ std::map<uint256, TxHashInfo> ComputeTxHashInfo(const Index& index, const Priori GenTxid ToGenTxid(const Announcement& ann) { - return {ann.m_is_wtxid, ann.m_txhash}; + return ann.m_is_wtxid ? GenTxid::Wtxid(ann.m_txhash) : GenTxid::Txid(ann.m_txhash); } } // namespace |