Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CMutableTransaction Struct Reference

A mutable version of CTransaction. More...

#include <transaction.h>

Public Member Functions

 CMutableTransaction ()
 
 CMutableTransaction (const CTransaction &tx)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
template<typename Stream >
 CMutableTransaction (deserialize_type, Stream &s)
 
uint256 GetHash () const
 Compute the hash of this CMutableTransaction. More...
 
std::string ToString () const
 

Public Attributes

std::vector< CTxInvin
 
std::vector< CTxOutvout
 
int16_t nVersion
 
int16_t nType
 
uint32_t nLockTime
 
std::vector< uint8_t > vExtraPayload
 
 ADD_SERIALIZE_METHODS
 

Friends

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

Detailed Description

A mutable version of CTransaction.

Definition at line 291 of file transaction.h.

Constructor & Destructor Documentation

◆ CMutableTransaction() [1/3]

CMutableTransaction::CMutableTransaction ( )

Definition at line 63 of file transaction.cpp.

◆ CMutableTransaction() [2/3]

CMutableTransaction::CMutableTransaction ( const CTransaction tx)

Definition at line 64 of file transaction.cpp.

◆ CMutableTransaction() [3/3]

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

Definition at line 322 of file transaction.h.

References Unserialize().

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

References SerializeHash().

Referenced by importprunedfunds(), MempoolEviction(), CPrivateSendClientSession::SignFinalTransaction(), and ToString().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CMutableTransaction::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 306 of file transaction.h.

References nLockTime, READWRITE, TRANSACTION_NORMAL, vExtraPayload, vin, and vout.

◆ ToString()

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 338 of file transaction.h.

◆ operator==

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

Definition at line 333 of file transaction.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CMutableTransaction::ADD_SERIALIZE_METHODS

Definition at line 303 of file transaction.h.

◆ nLockTime

uint32_t CMutableTransaction::nLockTime

◆ nType

int16_t CMutableTransaction::nType

◆ nVersion

◆ vExtraPayload

std::vector<uint8_t> CMutableTransaction::vExtraPayload

◆ vin

◆ vout


The documentation for this struct was generated from the following files:
Released under the MIT license