Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Data Fields
CTxInUndo Class Reference

Undo information for a CTxIn. More...

#include <core.h>

+ Collaboration diagram for CTxInUndo:

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)
 

Data Fields

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 287 of file core.h.

Constructor & Destructor Documentation

CTxInUndo::CTxInUndo ( )
inline

Definition at line 295 of file core.h.

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

Definition at line 296 of file core.h.

Member Function Documentation

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

Definition at line 298 of file core.h.

References CTxOutCompressor::CTxOutCompressor(), GetSerializeSize(), REF(), and VARINT.

+ Here is the call graph for this function:

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

Definition at line 305 of file core.h.

References CTxOutCompressor::CTxOutCompressor(), REF(), Serialize(), and VARINT.

+ Here is the call graph for this function:

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

Definition at line 313 of file core.h.

References CTxOutCompressor::CTxOutCompressor(), REF(), Unserialize(), and VARINT.

+ Here is the call graph for this function:

Field Documentation

bool CTxInUndo::fCoinBase

Definition at line 291 of file core.h.

Referenced by DisconnectBlock(), and CCoins::Spend().

unsigned int CTxInUndo::nHeight

Definition at line 292 of file core.h.

Referenced by DisconnectBlock(), and CCoins::Spend().

int CTxInUndo::nVersion

Definition at line 293 of file core.h.

Referenced by DisconnectBlock(), and CCoins::Spend().

CTxOut CTxInUndo::txout

Definition at line 290 of file core.h.

Referenced by DisconnectBlock().


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