#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 | UnserializeTransaction (TxType &tx, Stream &s) |
| Basic transaction serialization format: More...
|
|
template<typename Stream , typename TxType > |
void | SerializeTransaction (const TxType &tx, Stream &s) |
|
◆ CTransactionRef
◆ 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 203 of file transaction.h.