#include <stdint.h>
#include <amount.h>
#include <script/script.h>
#include <serialize.h>
#include <uint256.h>
#include <tuple>
Go to the source code of this file.
|
static const int | SERIALIZE_TRANSACTION_NO_WITNESS = 0x40000000 |
| A flag that is ORed into the protocol version to designate that a transaction should be (un)serialized without witness data. More...
|
|
◆ CTransactionRef
◆ MakeTransactionRef()
◆ SerializeTransaction()
template<typename Stream , typename TxType >
void SerializeTransaction |
( |
const TxType & |
tx, |
|
|
Stream & |
s |
|
) |
| |
|
inline |
◆ UnserializeTransaction()
template<typename Stream , typename TxType >
void UnserializeTransaction |
( |
TxType & |
tx, |
|
|
Stream & |
s |
|
) |
| |
|
inline |
Basic transaction serialization format:
- int32_t nVersion
- std::vector<CTxIn> vin
- std::vector<CTxOut> vout
- uint32_t nLockTime
Extended transaction serialization format:
- int32_t nVersion
- unsigned char dummy = 0x00
- unsigned char flags (!= 0)
- std::vector<CTxIn> vin
- std::vector<CTxOut> vout
- if (flags & 1):
- uint32_t nLockTime
Definition at line 188 of file transaction.h.
◆ SERIALIZE_TRANSACTION_NO_WITNESS
const int SERIALIZE_TRANSACTION_NO_WITNESS = 0x40000000 |
|
static |
A flag that is ORed into the protocol version to designate that a transaction should be (un)serialized without witness data.
Make sure that this does not collide with any of the values in version.h
or with ADDRV2_FORMAT
.
Definition at line 23 of file transaction.h.