Make GenTxid boolean constructor private

This commit is contained in:
MarcoFalke 2021-10-22 12:28:14 +02:00
parent faeb9a5753
commit fa4ec1c0bd
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
7 changed files with 13 additions and 12 deletions

View file

@ -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);
}