Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 ()
std::string ToString () const
Public Member Functions inherited from CBlockHeader
 CBlockHeader ()
 SERIALIZE_METHODS (CBlockHeader, obj)
void SetNull ()
bool IsNull () const
uint256 GetHash () const
NodeSeconds Time () const
int64_t GetBlockTime () const

Public Attributes

std::vector< CTransactionRefvtx
bool fChecked
bool m_checked_witness_commitment {false}
bool m_checked_merkle_root {false}
Public Attributes inherited from CBlockHeader
int32_t nVersion
uint256 hashPrevBlock
uint256 hashMerkleRoot
uint32_t nTime
uint32_t nBits
uint32_t nNonce

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.

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

◆ CBlock() [2/2]

CBlock::CBlock ( const CBlockHeader & header)
inline

Definition at line 89 of file block.h.

Here is the call graph for this function:

Member Function Documentation

◆ SERIALIZE_METHODS()

CBlock::SERIALIZE_METHODS ( CBlock ,
obj  )
inline

Definition at line 95 of file block.h.

Here is the call graph for this function:

◆ SetNull()

void CBlock::SetNull ( )
inline

Definition at line 100 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 20 of file block.cpp.

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

Member Data Documentation

◆ fChecked

bool CBlock::fChecked
mutable

Definition at line 80 of file block.h.

◆ m_checked_merkle_root

bool CBlock::m_checked_merkle_root {false}
mutable

Definition at line 82 of file block.h.

◆ m_checked_witness_commitment

bool CBlock::m_checked_witness_commitment {false}
mutable

Definition at line 81 of file block.h.

◆ vtx

std::vector<CTransactionRef> CBlock::vtx

Definition at line 77 of file block.h.


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