Dash Core  0.12.2.1
P2P Digital Currency
CBlock Class Reference

#include <block.h>

+ Inheritance diagram for CBlock:

Public Member Functions

 CBlock ()
 
 CBlock (const CBlockHeader &header)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
CBlockHeader GetBlockHeader () const
 
std::string ToString () const
 
- Public Member Functions inherited from CBlockHeader
 CBlockHeader ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
bool IsNull () const
 
uint256 GetHash () const
 
int64_t GetBlockTime () const
 

Public Attributes

std::vector< CTransactionvtx
 
CTxOut txoutMasternode
 
std::vector< CTxOutvoutSuperblock
 
bool fChecked
 
 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CBlockHeader
int32_t nVersion
 
uint256 hashPrevBlock
 
uint256 hashMerkleRoot
 
uint32_t nTime
 
uint32_t nBits
 
uint32_t nNonce
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

Definition at line 73 of file block.h.

Constructor & Destructor Documentation

◆ CBlock() [1/2]

CBlock::CBlock ( )
inline

Definition at line 84 of file block.h.

◆ CBlock() [2/2]

CBlock::CBlock ( const CBlockHeader header)
inline

Definition at line 89 of file block.h.

Member Function Documentation

◆ GetBlockHeader()

CBlockHeader CBlock::GetBlockHeader ( ) const
inline

Definition at line 112 of file block.h.

Referenced by CMerkleBlock::CMerkleBlock().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CBlock::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 98 of file block.h.

◆ SetNull()

void CBlock::SetNull ( )
inline

Definition at line 103 of file block.h.

Referenced by CBlock(), and ReadBlockFromDisk().

◆ ToString()

std::string CBlock::ToString ( ) const

Definition at line 18 of file block.cpp.

Referenced by ProcessBlockFound().

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlock::ADD_SERIALIZE_METHODS

Definition at line 95 of file block.h.

◆ fChecked

bool CBlock::fChecked
mutable

Definition at line 82 of file block.h.

Referenced by CheckBlock(), and SetNull().

◆ txoutMasternode

CTxOut CBlock::txoutMasternode
mutable

Definition at line 80 of file block.h.

Referenced by CreateNewBlock(), getblocktemplate(), and SetNull().

◆ voutSuperblock

std::vector<CTxOut> CBlock::voutSuperblock
mutable

Definition at line 81 of file block.h.

Referenced by CreateNewBlock(), getblocktemplate(), and SetNull().

◆ vtx


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