Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <block.h>

+ Inheritance diagram for CBlock:
+ Collaboration diagram for CBlock:

Public Member Functions

 CBlock ()
 
 CBlock (const CBlockHeader &header)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
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)
 
void SetNull ()
 
bool IsNull () const
 
uint256 GetHash () const
 
int64_t GetBlockTime () const
 

Public Attributes

std::vector< CTransactionRefvtx
 
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 72 of file block.h.

Constructor & Destructor Documentation

◆ CBlock() [1/2]

CBlock::CBlock ( )
inline

Definition at line 81 of file block.h.

References SetNull().

◆ CBlock() [2/2]

CBlock::CBlock ( const CBlockHeader header)
inline

Definition at line 86 of file block.h.

References SetNull().

Member Function Documentation

◆ GetBlockHeader()

◆ SerializationOp()

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

Definition at line 95 of file block.h.

References READWRITE, and vtx.

◆ SetNull()

void CBlock::SetNull ( )
inline

Definition at line 100 of file block.h.

References fChecked, CBlockHeader::SetNull(), and vtx.

Referenced by CBlock(), and ReadBlockFromDisk().

◆ ToString()

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlock::ADD_SERIALIZE_METHODS

Definition at line 92 of file block.h.

◆ fChecked

bool CBlock::fChecked
mutable

Definition at line 79 of file block.h.

Referenced by CheckBlock(), and SetNull().

◆ vtx


The documentation for this class was generated from the following files:
Released under the MIT license