Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | 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, const TransactionSerParams &params, Stream &s)
 
template<typename Stream >
 CMutableTransaction (deserialize_type, ParamsStream< TransactionSerParams, Stream > &s)
 
Txid 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
 

Detailed Description

A mutable version of CTransaction.

Definition at line 377 of file transaction.h.

Constructor & Destructor Documentation

◆ CMutableTransaction() [1/4]

CMutableTransaction::CMutableTransaction ( )
explicit

Definition at line 66 of file transaction.cpp.

◆ CMutableTransaction() [2/4]

CMutableTransaction::CMutableTransaction ( const CTransaction tx)
explicit

Definition at line 67 of file transaction.cpp.

◆ CMutableTransaction() [3/4]

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

Definition at line 398 of file transaction.h.

Here is the call graph for this function:

◆ CMutableTransaction() [4/4]

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

Definition at line 403 of file transaction.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetHash()

Txid 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 69 of file transaction.cpp.

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

◆ HasWitness()

bool CMutableTransaction::HasWitness ( ) const
inline

Definition at line 412 of file transaction.h.

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 388 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 393 of file transaction.h.

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

Member Data Documentation

◆ nLockTime

uint32_t CMutableTransaction::nLockTime

Definition at line 382 of file transaction.h.

◆ nVersion

int32_t CMutableTransaction::nVersion

Definition at line 381 of file transaction.h.

◆ vin

std::vector<CTxIn> CMutableTransaction::vin

Definition at line 379 of file transaction.h.

◆ vout

std::vector<CTxOut> CMutableTransaction::vout

Definition at line 380 of file transaction.h.


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