Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Typedefs | Functions
transaction.h File Reference
#include <stdint.h>
#include <amount.h>
#include <script/script.h>
#include <serialize.h>
#include <uint256.h>
Include dependency graph for transaction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  COutPoint
 An outpoint - a combination of a transaction hash and an index n into its vout. More...
 
class  CTxIn
 An input of a transaction. More...
 
class  CTxOut
 An output of a transaction. More...
 
class  CTransaction
 The basic transaction that is broadcasted on the network and contained in blocks. More...
 
struct  CMutableTransaction
 A mutable version of CTransaction. More...
 

Typedefs

typedef std::shared_ptr< const CTransactionCTransactionRef
 

Functions

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)
 
int64_t GetTransactionWeight (const CTransaction &tx)
 

Typedef Documentation

typedef std::shared_ptr<const CTransaction> CTransactionRef

Definition at line 437 of file transaction.h.

Function Documentation

int64_t GetTransactionWeight ( const CTransaction tx)

Definition at line 117 of file transaction.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Stream , typename TxType >
void SerializeTransaction ( const TxType &  tx,
Stream &  s 
)
inline

Definition at line 243 of file transaction.h.

Here is the caller graph for this function:

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):
    • CTxWitness wit;
  • uint32_t nLockTime

Definition at line 208 of file transaction.h.

Here is the caller graph for this function: