Constructors
Declared in <primitives/transaction.h>
Convert a CMutableTransaction into a CTransaction.
explicit
CTransaction(CMutableTransaction const& tx);
» more...
Converts a mutable transaction into a CTransaction, moving its contents.
explicit
CTransaction(CMutableTransaction&& tx);
» more...
Constructs a transaction by deserializing from a stream.
template<typename Stream>
CTransaction(
deserialize_type tag,
Stream& s);
» more...
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);
» more...
| 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. |