Dash Core  0.12.2.1
P2P Digital Currency
CTxInUndo Class Reference

#include <undo.h>

Public Member Functions

 CTxInUndo ()
 
 CTxInUndo (const CTxOut &txoutIn, bool fCoinBaseIn=false, unsigned int nHeightIn=0, int nVersionIn=0)
 
unsigned int GetSerializeSize (int nType, int nVersion) const
 
template<typename Stream >
void Serialize (Stream &s, int nType, int nVersion) const
 
template<typename Stream >
void Unserialize (Stream &s, int nType, int nVersion)
 

Public Attributes

CTxOut txout
 
bool fCoinBase
 
unsigned int nHeight
 
int nVersion
 

Detailed Description

Undo information for a CTxIn

Contains the prevout's CTxOut being spent, and if this was the last output of the affected transaction, its metadata as well (coinbase or not, height, transaction version)

Definition at line 19 of file undo.h.

Constructor & Destructor Documentation

◆ CTxInUndo() [1/2]

CTxInUndo::CTxInUndo ( )
inline

Definition at line 27 of file undo.h.

◆ CTxInUndo() [2/2]

CTxInUndo::CTxInUndo ( const CTxOut txoutIn,
bool  fCoinBaseIn = false,
unsigned int  nHeightIn = 0,
int  nVersionIn = 0 
)
inline

Definition at line 28 of file undo.h.

Member Function Documentation

◆ GetSerializeSize()

unsigned int CTxInUndo::GetSerializeSize ( int  nType,
int  nVersion 
) const
inline

Definition at line 30 of file undo.h.

◆ Serialize()

template<typename Stream >
void CTxInUndo::Serialize ( Stream &  s,
int  nType,
int  nVersion 
) const
inline

Definition at line 37 of file undo.h.

◆ Unserialize()

template<typename Stream >
void CTxInUndo::Unserialize ( Stream &  s,
int  nType,
int  nVersion 
)
inline

Definition at line 45 of file undo.h.

Member Data Documentation

◆ fCoinBase

bool CTxInUndo::fCoinBase

Definition at line 23 of file undo.h.

Referenced by ApplyTxInUndo(), GetSerializeSize(), Serialize(), Unserialize(), and UpdateCoins().

◆ nHeight

unsigned int CTxInUndo::nHeight

◆ nVersion

int CTxInUndo::nVersion

Definition at line 25 of file undo.h.

Referenced by ApplyTxInUndo(), GetSerializeSize(), Serialize(), Unserialize(), and UpdateCoins().

◆ txout

CTxOut CTxInUndo::txout

Definition at line 22 of file undo.h.

Referenced by ApplyTxInUndo(), GetSerializeSize(), Serialize(), and Unserialize().


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