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

#include <block.h>

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

Public Member Functions

 CBlock ()
 
 CBlock (const CBlockHeader &header)
 
 SERIALIZE_METHODS (CBlock, obj)
 
void SetNull ()
 
CBlockHeader GetBlockHeader () const
 
bool IsProofOfStake () const
 
bool IsProofOfWork () const
 
std::string ToString () const
 
void print () const
 
- Public Member Functions inherited from CBlockHeader
 CBlockHeader ()
 
 SERIALIZE_METHODS (CBlockHeader, obj)
 
void SetNull ()
 
bool IsNull () const
 
uint256 GetHash () const
 
int64_t GetBlockTime () const
 

Public Attributes

std::vector< CTransactionRefvtx
 
std::vector< unsigned char > vchBlockSig
 
bool fChecked {false}
 
- Public Attributes inherited from CBlockHeader
int32_t nVersion
 
uint256 hashPrevBlock
 
uint256 hashMerkleRoot
 
uint32_t nTime
 
uint32_t nBits
 
uint32_t nNonce
 
uint256 nAccumulatorCheckpoint
 
uint256 hashFinalSaplingRoot
 

Additional Inherited Members

- Static Public Attributes inherited from CBlockHeader
static const int32_t CURRENT_VERSION =11
 

Detailed Description

Definition at line 79 of file block.h.

Constructor & Destructor Documentation

◆ CBlock() [1/2]

CBlock::CBlock ( )
inline

Definition at line 91 of file block.h.

Here is the call graph for this function:

◆ CBlock() [2/2]

CBlock::CBlock ( const CBlockHeader header)
inline

Definition at line 96 of file block.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetBlockHeader()

CBlockHeader CBlock::GetBlockHeader ( ) const
inline

Definition at line 118 of file block.h.

◆ IsProofOfStake()

bool CBlock::IsProofOfStake ( ) const
inline

Definition at line 134 of file block.h.

Here is the caller graph for this function:

◆ IsProofOfWork()

bool CBlock::IsProofOfWork ( ) const
inline

Definition at line 139 of file block.h.

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

◆ print()

void CBlock::print ( ) const

Definition at line 53 of file block.cpp.

◆ SERIALIZE_METHODS()

CBlock::SERIALIZE_METHODS ( CBlock  ,
obj   
)
inline

Definition at line 102 of file block.h.

◆ SetNull()

void CBlock::SetNull ( )
inline

Definition at line 110 of file block.h.

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

◆ ToString()

std::string CBlock::ToString ( ) const

Definition at line 35 of file block.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fChecked

bool CBlock::fChecked {false}
mutable

Definition at line 89 of file block.h.

◆ vchBlockSig

std::vector<unsigned char> CBlock::vchBlockSig

Definition at line 86 of file block.h.

◆ vtx

std::vector<CTransactionRef> CBlock::vtx

Definition at line 83 of file block.h.


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