GenTxid

A transaction identifier that holds either a txid or a wtxid.

Synopsis

Declared in <primitives/transaction_identifier.h>

class GenTxid
    : public std::variant<Txid, Wtxid>

Base Classes

NameDescription
std::variant<Txid, Wtxid>

Type Aliases

Name
__trivially_relocatable

Member Functions

NameDescription
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

Using Declarations

NameDescription
GenTxid Inherits the variant constructors to build from a Txid or Wtxid.

Friends

NameDescription
operator<=>Orders identifiers by kind, then by wrapped value.

Non-Member Functions

NameDescription
ToGenTxidConvert a TX/WITNESS_TX/WTX CInv to a GenTxid.