mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Convert remaining instances of GenTxid to GenTxidVariant
This commit is contained in:
@@ -118,8 +118,8 @@ std::vector<std::string> serviceFlagsToStr(uint64_t flags)
|
||||
return str_flags;
|
||||
}
|
||||
|
||||
GenTxid ToGenTxid(const CInv& inv)
|
||||
GenTxidVariant ToGenTxid(const CInv& inv)
|
||||
{
|
||||
assert(inv.IsGenTxMsg());
|
||||
return inv.IsMsgWtx() ? GenTxid::Wtxid(inv.hash) : GenTxid::Txid(inv.hash);
|
||||
return inv.IsMsgWtx() ? GenTxidVariant{Wtxid::FromUint256(inv.hash)} : GenTxidVariant{Txid::FromUint256(inv.hash)};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user