A transaction identifier that holds either a txid or a wtxid.
Declared in <primitives/transaction_identifier.h>
class GenTxid
: public std::variant<Txid, Wtxid>
| Name | Description |
|---|---|
std::variant<Txid, Wtxid> |
| Name |
|---|
__trivially_relocatable |
| Name | Description |
|---|---|
operator= | Assignment operators |
IsWtxid | Returns true when the identifier holds a wtxid. |
ToUint256 | Returns the underlying 256-bit value, whichever alternative is held. |
emplace | |
index | |
swap | |
valueless_by_exception |
| Name | Description |
|---|---|
GenTxid | Inherits the variant constructors to build from a Txid or Wtxid. |
| Name | Description |
|---|---|
operator<=> | Orders identifiers by kind, then by wrapped value. |
| Name | Description |
|---|---|
ToGenTxid | Convert a TX/WITNESS_TX/WTX CInv to a GenTxid. |