PIVX Core  5.6.99
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, Stream &s)
 
bool isSaplingVersion () const
 
bool IsNormalType () const
 
uint256 GetHash () const
 Compute the hash of this CMutableTransaction. More...
 
bool hasExtraPayload () const
 
SigVersion GetRequiredSigVersion () const
 

Public Attributes

std::vector< CTxInvin
 
std::vector< CTxOutvout
 
int16_t nVersion
 
int16_t nType
 
uint32_t nLockTime
 
Optional< SaplingTxDatasapData {SaplingTxData()}
 
Optional< std::vector< uint8_t > > extraPayload {nullopt}
 

Detailed Description

A mutable version of CTransaction.

Definition at line 408 of file transaction.h.

Constructor & Destructor Documentation

◆ CMutableTransaction() [1/3]

CMutableTransaction::CMutableTransaction ( )

Definition at line 93 of file transaction.cpp.

◆ CMutableTransaction() [2/3]

CMutableTransaction::CMutableTransaction ( const CTransaction tx)

Definition at line 94 of file transaction.cpp.

◆ CMutableTransaction() [3/3]

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

Definition at line 432 of file transaction.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetHash()

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

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

◆ GetRequiredSigVersion()

SigVersion CMutableTransaction::GetRequiredSigVersion ( ) const
inline

Definition at line 450 of file transaction.h.

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

◆ hasExtraPayload()

bool CMutableTransaction::hasExtraPayload ( ) const
inline

Definition at line 444 of file transaction.h.

Here is the caller graph for this function:

◆ IsNormalType()

bool CMutableTransaction::IsNormalType ( ) const
inline

Definition at line 437 of file transaction.h.

◆ isSaplingVersion()

bool CMutableTransaction::isSaplingVersion ( ) const
inline

Definition at line 436 of file transaction.h.

Here is the caller graph for this function:

◆ Serialize()

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

Definition at line 422 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 427 of file transaction.h.

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

Member Data Documentation

◆ extraPayload

Optional<std::vector<uint8_t> > CMutableTransaction::extraPayload {nullopt}

Definition at line 416 of file transaction.h.

◆ nLockTime

uint32_t CMutableTransaction::nLockTime

Definition at line 414 of file transaction.h.

◆ nType

int16_t CMutableTransaction::nType

Definition at line 413 of file transaction.h.

◆ nVersion

int16_t CMutableTransaction::nVersion

Definition at line 412 of file transaction.h.

◆ sapData

Optional<SaplingTxData> CMutableTransaction::sapData {SaplingTxData()}

Definition at line 415 of file transaction.h.

◆ vin

std::vector<CTxIn> CMutableTransaction::vin

Definition at line 410 of file transaction.h.

◆ vout

std::vector<CTxOut> CMutableTransaction::vout

Definition at line 411 of file transaction.h.


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