PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CTxInUndo Class Reference

Undo information for a CTxIn. More...

#include <undo.h>

Collaboration diagram for CTxInUndo:
[legend]

Public Member Functions

 CTxInUndo ()
 
 CTxInUndo (const CTxOut &txoutIn, bool fCoinBaseIn=false, bool fCoinStakeIn=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
 
bool fCoinStake
 
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 20 of file undo.h.

Constructor & Destructor Documentation

◆ CTxInUndo() [1/2]

CTxInUndo::CTxInUndo ( )
inline

Definition at line 29 of file undo.h.

◆ CTxInUndo() [2/2]

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

Definition at line 30 of file undo.h.

Member Function Documentation

◆ GetSerializeSize()

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

Definition at line 32 of file undo.h.

Here is the call graph for this function:

◆ Serialize()

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

Definition at line 40 of file undo.h.

Here is the call graph for this function:

◆ Unserialize()

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

Definition at line 49 of file undo.h.

Here is the call graph for this function:

Member Data Documentation

◆ fCoinBase

bool CTxInUndo::fCoinBase

Definition at line 24 of file undo.h.

◆ fCoinStake

bool CTxInUndo::fCoinStake

Definition at line 25 of file undo.h.

◆ nHeight

unsigned int CTxInUndo::nHeight

Definition at line 26 of file undo.h.

◆ nVersion

int CTxInUndo::nVersion

Definition at line 27 of file undo.h.

◆ txout

CTxOut CTxInUndo::txout

Definition at line 23 of file undo.h.


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