PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
Coin Class Reference

A UTXO entry. More...

#include <coins.h>

Collaboration diagram for Coin:
[legend]

Public Member Functions

 Coin (CTxOut &&outIn, int nHeightIn, bool fCoinBaseIn, bool fCoinStakeIn)
 construct a Coin from a CTxOut and height/coinbase properties. More...
 
 Coin (const CTxOut &outIn, int nHeightIn, bool fCoinBaseIn, bool fCoinStakeIn)
 
void Clear ()
 
 Coin ()
 empty constructor More...
 
bool IsCoinBase () const
 
bool IsCoinStake () const
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 
bool IsSpent () const
 
size_t DynamicMemoryUsage () const
 

Public Attributes

bool fCoinBase
 whether the containing transaction was a coinbase More...
 
bool fCoinStake
 whether the containing transaction was a coinstake More...
 
CTxOut out
 unspent transaction output More...
 
uint32_t nHeight
 at which height the containing transaction was included in the active block chain More...
 

Detailed Description

A UTXO entry.

Serialized format:

Definition at line 31 of file coins.h.

Constructor & Destructor Documentation

◆ Coin() [1/3]

Coin::Coin ( CTxOut &&  outIn,
int  nHeightIn,
bool  fCoinBaseIn,
bool  fCoinStakeIn 
)
inline

construct a Coin from a CTxOut and height/coinbase properties.

Definition at line 47 of file coins.h.

◆ Coin() [2/3]

Coin::Coin ( const CTxOut outIn,
int  nHeightIn,
bool  fCoinBaseIn,
bool  fCoinStakeIn 
)
inline

Definition at line 48 of file coins.h.

◆ Coin() [3/3]

Coin::Coin ( )
inline

empty constructor

Definition at line 58 of file coins.h.

Member Function Documentation

◆ Clear()

void Coin::Clear ( )
inline

Definition at line 50 of file coins.h.

Here is the call graph for this function:

◆ DynamicMemoryUsage()

size_t Coin::DynamicMemoryUsage ( ) const
inline

Definition at line 90 of file coins.h.

◆ IsCoinBase()

bool Coin::IsCoinBase ( ) const
inline

Definition at line 60 of file coins.h.

Here is the caller graph for this function:

◆ IsCoinStake()

bool Coin::IsCoinStake ( ) const
inline

Definition at line 64 of file coins.h.

Here is the caller graph for this function:

◆ IsSpent()

bool Coin::IsSpent ( ) const
inline

Definition at line 86 of file coins.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Serialize()

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

Definition at line 69 of file coins.h.

Here is the call graph for this function:

◆ Unserialize()

template<typename Stream >
void Coin::Unserialize ( Stream &  s)
inline

Definition at line 77 of file coins.h.

Member Data Documentation

◆ fCoinBase

bool Coin::fCoinBase

whether the containing transaction was a coinbase

Definition at line 35 of file coins.h.

◆ fCoinStake

bool Coin::fCoinStake

whether the containing transaction was a coinstake

Definition at line 38 of file coins.h.

◆ nHeight

uint32_t Coin::nHeight

at which height the containing transaction was included in the active block chain

Definition at line 44 of file coins.h.

◆ out

CTxOut Coin::out

unspent transaction output

Definition at line 41 of file coins.h.


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