Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce values to make the block's hash satisfy proof-of-work requirements. More...

#include <block.h>

+ Inheritance diagram for CBlockHeader:
+ Collaboration diagram for CBlockHeader:

Public Member Functions

 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

int32_t nVersion
 
uint256 hashPrevBlock
 
uint256 hashMerkleRoot
 
uint32_t nTime
 
uint32_t nBits
 
uint32_t nNonce
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce values to make the block's hash satisfy proof-of-work requirements.

When they solve the proof-of-work, they broadcast the block to everyone and the block is added to the block chain. The first transaction in the block is a special one that creates a new coin owned by the creator of the block.

Definition at line 20 of file block.h.

Constructor & Destructor Documentation

◆ CBlockHeader()

CBlockHeader::CBlockHeader ( )
inline

Definition at line 31 of file block.h.

References SetNull().

Member Function Documentation

◆ GetBlockTime()

◆ GetHash()

◆ IsNull()

bool CBlockHeader::IsNull ( ) const
inline

◆ SerializationOp()

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

Definition at line 39 of file block.h.

References hashMerkleRoot, hashPrevBlock, nBits, nNonce, nTime, and READWRITE.

◆ SetNull()

void CBlockHeader::SetNull ( )
inline

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockHeader::ADD_SERIALIZE_METHODS

Definition at line 36 of file block.h.

◆ hashMerkleRoot

◆ hashPrevBlock

◆ nBits

◆ nNonce

◆ nTime

◆ nVersion


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