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

#include <kernel.h>

Collaboration diagram for CStakeKernel:
[legend]

Public Member Functions

 CStakeKernel (const CBlockIndex *const pindexPrev, CStakeInput *stakeInput, unsigned int nBits, int nTimeTx)
 CStakeKernel Constructor. More...
 
uint256 GetHash () const
 
bool CheckKernelHash (bool fSkipLog=false) const
 

Private Attributes

CDataStream stakeModifier {CDataStream(SER_GETHASH, 0)}
 
int nTimeBlockFrom {0}
 
CDataStream stakeUniqueness {CDataStream(SER_GETHASH, 0)}
 
int nTime {0}
 
unsigned int nBits {0}
 
CAmount stakeValue {0}
 

Detailed Description

Definition at line 13 of file kernel.h.

Constructor & Destructor Documentation

◆ CStakeKernel()

CStakeKernel::CStakeKernel ( const CBlockIndex *const  pindexPrev,
CStakeInput stakeInput,
unsigned int  nBits,
int  nTimeTx 
)

CStakeKernel Constructor.

Parameters
[in]pindexPrevindex of the parent of the kernel block
[in]stakeInputinput for the coinstake of the kernel block
[in]nBitstarget difficulty bits of the kernel block
[in]nTimeTxtime of the kernel block

Definition at line 28 of file kernel.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ CheckKernelHash()

bool CStakeKernel::CheckKernelHash ( bool  fSkipLog = false) const

Definition at line 58 of file kernel.cpp.

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

◆ GetHash()

uint256 CStakeKernel::GetHash ( ) const

Definition at line 50 of file kernel.cpp.

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

Member Data Documentation

◆ nBits

unsigned int CStakeKernel::nBits {0}
private

Definition at line 38 of file kernel.h.

◆ nTime

int CStakeKernel::nTime {0}
private

Definition at line 36 of file kernel.h.

◆ nTimeBlockFrom

int CStakeKernel::nTimeBlockFrom {0}
private

Definition at line 34 of file kernel.h.

◆ stakeModifier

CDataStream CStakeKernel::stakeModifier {CDataStream(SER_GETHASH, 0)}
private

Definition at line 33 of file kernel.h.

◆ stakeUniqueness

CDataStream CStakeKernel::stakeUniqueness {CDataStream(SER_GETHASH, 0)}
private

Definition at line 35 of file kernel.h.

◆ stakeValue

CAmount CStakeKernel::stakeValue {0}
private

Definition at line 39 of file kernel.h.


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