wallet::CWalletTx::CWalletTx

Constructors

Synopses

Declared in <wallet/transaction.h>

Deleted copy constructor; CWalletTx objects must not be copied.

CWalletTx(CWalletTx const& other) = delete;
» more...

Enable the default move constructor.

constexpr
CWalletTx(CWalletTx&& other) = default;
» more...

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

CWalletTx(
    CTransactionRef tx,
    TxState const& state);
» more...

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);
» more...

Parameters

NameDescription
otherThe wallet transaction to move from.
txThe transaction reference to wrap.
stateThe initial confirmation state of the transaction.
typeTag selecting the deserializing constructor overload.
sThe input stream to deserialize the transaction from.
variantsAdditional witness variants to merge, keyed by witness txid.