Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

TxInUndoSerializer Class Reference

Undo information for a CTxIn. More...

#include <undo.h>

+ Collaboration diagram for TxInUndoSerializer:

Public Member Functions

template<typename Stream >
void Serialize (Stream &s) const
 
 TxInUndoSerializer (const Coin *coin)
 

Private Attributes

const Cointxout
 

Detailed Description

Undo information for a CTxIn.

Contains the prevout's CTxOut being spent, and its metadata as well (coinbase or not, height). The serialization contains a dummy value of zero. This is be compatible with older versions which expect to see the transaction version there.

Definition at line 21 of file undo.h.

Constructor & Destructor Documentation

◆ TxInUndoSerializer()

TxInUndoSerializer::TxInUndoSerializer ( const Coin coin)
inlineexplicit

Definition at line 36 of file undo.h.

Member Function Documentation

◆ Serialize()

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

Definition at line 27 of file undo.h.

References Coin::fCoinBase, Coin::nHeight, Coin::out, REF(), txout, and VARINT.

Member Data Documentation

◆ txout

const Coin* TxInUndoSerializer::txout
private

Definition at line 23 of file undo.h.

Referenced by Serialize().


The documentation for this class was generated from the following file:
Released under the MIT license