mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-12 00:26:03 +01:00
refactor: add GenTxid (=txid or wtxid) type and use it for tx request logic
This commit is contained in:
@@ -241,3 +241,9 @@ std::vector<std::string> serviceFlagsToStr(uint64_t flags)
|
||||
|
||||
return str_flags;
|
||||
}
|
||||
|
||||
GenTxid ToGenTxid(const CInv& inv)
|
||||
{
|
||||
assert(inv.IsGenTxMsg());
|
||||
return {inv.IsMsgWtx(), inv.hash};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user