Constructors

Synopses

Declared in <primitives/transaction.h>

Convert a CMutableTransaction into a CTransaction.

explicit
CTransaction(CMutableTransaction const& tx);

Converts a mutable transaction into a CTransaction, moving its contents.

Constructs a transaction by deserializing from a stream.

template<typename Stream>
CTransaction(
    deserialize_type tag,
    Stream& s);

This deserializing constructor is provided instead of an Unserialize method. Unserialize is not possible, since it would require overwriting const fields.

template<typename Stream>
CTransaction(
    deserialize_type tag,
    TransactionSerParams const& params,
    Stream& s);

Parameters

Name

Description

tx

The mutable transaction to copy from.

tag

Tag selecting the deserializing constructor.

s

The stream to read from.

params

Parameters controlling whether witness data is read.

Created with MrDocs