Bitcoin ABC 0.30.3
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CMutableTransaction Class Reference

A mutable version of CTransaction. More...

#include <transaction.h>

Public Member Functions

 CMutableTransaction ()
 
 CMutableTransaction (const CTransaction &tx)
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 
template<typename Stream >
 CMutableTransaction (deserialize_type, Stream &s)
 
TxId GetId () const
 Compute the id and hash of this CMutableTransaction. More...
 
TxHash GetHash () const
 

Public Attributes

std::vector< CTxInvin
 
std::vector< CTxOutvout
 
int32_t nVersion
 
uint32_t nLockTime
 

Friends

bool operator== (const CMutableTransaction &a, const CMutableTransaction &b)
 

Detailed Description

A mutable version of CTransaction.

Definition at line 274 of file transaction.h.

Constructor & Destructor Documentation

◆ CMutableTransaction() [1/3]

CMutableTransaction::CMutableTransaction ( )

Definition at line 42 of file transaction.cpp.

◆ CMutableTransaction() [2/3]

CMutableTransaction::CMutableTransaction ( const CTransaction tx)
explicit

Definition at line 44 of file transaction.cpp.

◆ CMutableTransaction() [3/3]

template<typename Stream >
CMutableTransaction::CMutableTransaction ( deserialize_type  ,
Stream &  s 
)
inline

Definition at line 293 of file transaction.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetHash()

TxHash CMutableTransaction::GetHash ( ) const

Definition at line 56 of file transaction.cpp.

Here is the call graph for this function:

◆ GetId()

TxId CMutableTransaction::GetId ( ) const

Compute the id and hash of this CMutableTransaction.

This is computed on the fly, as opposed to GetId() and GetHash() in CTransaction, which uses a cached result.

Definition at line 52 of file transaction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Serialize()

template<typename Stream >
void CMutableTransaction::Serialize ( Stream &  s) const
inline

Definition at line 284 of file transaction.h.

Here is the call graph for this function:

◆ Unserialize()

template<typename Stream >
void CMutableTransaction::Unserialize ( Stream &  s)
inline

Definition at line 288 of file transaction.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator==

bool operator== ( const CMutableTransaction a,
const CMutableTransaction b 
)
friend

Definition at line 305 of file transaction.h.

Member Data Documentation

◆ nLockTime

uint32_t CMutableTransaction::nLockTime

Definition at line 279 of file transaction.h.

◆ nVersion

int32_t CMutableTransaction::nVersion

Definition at line 278 of file transaction.h.

◆ vin

std::vector<CTxIn> CMutableTransaction::vin

Definition at line 276 of file transaction.h.

◆ vout

std::vector<CTxOut> CMutableTransaction::vout

Definition at line 277 of file transaction.h.


The documentation for this class was generated from the following files: