#include <stdint.h>
#include <amount.h>
#include <script/script.h>
#include <serialize.h>
#include <uint256.h>
Go to the source code of this file.
template<typename Stream , typename TxType >
void SerializeTransaction |
( |
const TxType & |
tx, |
|
|
Stream & |
s |
|
) |
| |
|
inline |
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 208 of file transaction.h.