Constructors

Synopses

Declared in <wallet/transaction.h>

Deleted copy constructor; CWalletTx objects must not be copied.

CWalletTx(CWalletTx const& other) = delete;

Enable the default move constructor.

constexpr
CWalletTx(CWalletTx&& other) = default;

Construct a wallet transaction from a transaction reference and its state.

CWalletTx(
    CTransactionRef tx,
    TxState const& state);

Construct a wallet transaction by deserializing it, merging any witness variants.

template<typename Stream>
CWalletTx(
    deserialize_type type,
    Stream& s,
    std::map<Wtxid, CTransactionRef> const& variants);

Parameters

Name

Description

other

The wallet transaction to move from.

tx

The transaction reference to wrap.

state

The initial confirmation state of the transaction.

type

Tag selecting the deserializing constructor overload.

s

The input stream to deserialize the transaction from.

variants

Additional witness variants to merge, keyed by witness txid.

Created with MrDocs