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

Name

Description

std::variant<Txid, Wtxid>

Type Aliases

Member Functions

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

Using Declarations

Name

Description

GenTxid

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

Friends

Name

Description

operator<=>

Orders identifiers by kind, then by wrapped value.

Non-Member Functions

Name

Description

ToGenTxid

Convert a TX/WITNESS_TX/WTX CInv to a GenTxid.

Created with MrDocs