#include <consensus/amount.h>
#include <prevector.h>
#include <script/script.h>
#include <serialize.h>
#include <uint256.h>
#include <cstddef>
#include <cstdint>
#include <ios>
#include <limits>
#include <memory>
#include <numeric>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
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
◆ CalculateOutputValue()
template<typename TxType >
CAmount CalculateOutputValue |
( |
const TxType & |
tx | ) |
|
|
inline |
◆ 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 217 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 32 of file transaction.h.