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/protocol.cpp | |
parent | faeb9a575367119dbff60c35fa2c13547718e179 (diff) |
Make GenTxid boolean constructor private
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 2e70b41e4c..7506c81815 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -223,5 +223,5 @@ std::vector<std::string> serviceFlagsToStr(uint64_t flags) GenTxid ToGenTxid(const CInv& inv) { assert(inv.IsGenTxMsg()); - return {inv.IsMsgWtx(), inv.hash}; + return inv.IsMsgWtx() ? GenTxid::Wtxid(inv.hash) : GenTxid::Txid(inv.hash); } |