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

#include <zpos.h>

Inheritance diagram for CLegacyZPivStake:
[legend]
Collaboration diagram for CLegacyZPivStake:
[legend]

Public Member Functions

 CLegacyZPivStake (const CBlockIndex *_pindexFrom, uint32_t _nChecksum, libzerocoin::CoinDenomination _denom, const uint256 &_hashSerial)
 
bool IsZPIV () const override
 
uint32_t GetChecksum () const
 
const CBlockIndexGetIndexFrom () const override
 
CAmount GetValue () const override
 
CDataStream GetUniqueness () const override
 
bool GetTxOutFrom (CTxOut &out) const override
 
- Public Member Functions inherited from CStakeInput
 CStakeInput (const CBlockIndex *_pindexFrom)
 
virtual ~CStakeInput ()
 

Static Public Member Functions

static CLegacyZPivStakeNewZPivStake (const CTxIn &txin, int nHeight)
 

Private Attributes

uint32_t nChecksum {0}
 
libzerocoin::CoinDenomination denom {libzerocoin::ZQ_ERROR}
 
uint256 hashSerial {UINT256_ZERO}
 

Additional Inherited Members

- Protected Attributes inherited from CStakeInput
const CBlockIndexpindexFrom = nullptr
 

Detailed Description

Definition at line 11 of file zpos.h.

Constructor & Destructor Documentation

◆ CLegacyZPivStake()

CLegacyZPivStake::CLegacyZPivStake ( const CBlockIndex _pindexFrom,
uint32_t  _nChecksum,
libzerocoin::CoinDenomination  _denom,
const uint256 _hashSerial 
)
inline

Definition at line 19 of file zpos.h.

Member Function Documentation

◆ GetChecksum()

uint32_t CLegacyZPivStake::GetChecksum ( ) const
inline

Definition at line 29 of file zpos.h.

◆ GetIndexFrom()

const CBlockIndex * CLegacyZPivStake::GetIndexFrom ( ) const
overridevirtual

Implements CStakeInput.

Definition at line 103 of file zpos.cpp.

◆ GetTxOutFrom()

bool CLegacyZPivStake::GetTxOutFrom ( CTxOut out) const
inlineoverridevirtual

Implements CStakeInput.

Definition at line 33 of file zpos.h.

◆ GetUniqueness()

CDataStream CLegacyZPivStake::GetUniqueness ( ) const
overridevirtual

Implements CStakeInput.

Definition at line 113 of file zpos.cpp.

◆ GetValue()

CAmount CLegacyZPivStake::GetValue ( ) const
overridevirtual

Implements CStakeInput.

Definition at line 108 of file zpos.cpp.

◆ IsZPIV()

bool CLegacyZPivStake::IsZPIV ( ) const
inlineoverridevirtual

Implements CStakeInput.

Definition at line 28 of file zpos.h.

◆ NewZPivStake()

CLegacyZPivStake * CLegacyZPivStake::NewZPivStake ( const CTxIn txin,
int  nHeight 
)
static

Definition at line 58 of file zpos.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ denom

libzerocoin::CoinDenomination CLegacyZPivStake::denom {libzerocoin::ZQ_ERROR}
private

Definition at line 15 of file zpos.h.

◆ hashSerial

uint256 CLegacyZPivStake::hashSerial {UINT256_ZERO}
private

Definition at line 16 of file zpos.h.

◆ nChecksum

uint32_t CLegacyZPivStake::nChecksum {0}
private

Definition at line 14 of file zpos.h.


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