Convert remaining instances of GenTxid to GenTxidVariant

This commit is contained in:
marcofleon
2025-04-01 11:47:49 +01:00
parent 1b528391c7
commit 072a198ea4
3 changed files with 11 additions and 11 deletions

View File

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