Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CMutableTransaction Struct 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)
 
uint256 GetHash () const
 Compute the hash of this CMutableTransaction. More...
 
bool HasWitness () 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 362 of file transaction.h.

Constructor & Destructor Documentation

CMutableTransaction::CMutableTransaction ( )

Definition at line 57 of file transaction.cpp.

CMutableTransaction::CMutableTransaction ( const CTransaction tx)

Definition at line 58 of file transaction.cpp.

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

Definition at line 384 of file transaction.h.

Here is the call graph for this function:

Member Function Documentation

uint256 CMutableTransaction::GetHash ( ) const

Compute the hash of this CMutableTransaction.

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

Definition at line 60 of file transaction.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CMutableTransaction::HasWitness ( ) const
inline

Definition at line 398 of file transaction.h.

Here is the caller graph for this function:

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

Definition at line 373 of file transaction.h.

Here is the call graph for this function:

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

Definition at line 379 of file transaction.h.

Here is the call graph for this function:

Friends And Related Function Documentation

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

Definition at line 393 of file transaction.h.

Member Data Documentation

uint32_t CMutableTransaction::nLockTime

Definition at line 367 of file transaction.h.

int32_t CMutableTransaction::nVersion

Definition at line 366 of file transaction.h.

std::vector<CTxIn> CMutableTransaction::vin

Definition at line 364 of file transaction.h.

std::vector<CTxOut> CMutableTransaction::vout

Definition at line 365 of file transaction.h.


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