Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <block.h>
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< CTransactionRef > | vtx |
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
Constructor & Destructor Documentation
◆ CBlock() [1/2]
◆ CBlock() [2/2]
|
inline |
Member Function Documentation
◆ GetBlockHeader()
|
inline |
Definition at line 107 of file block.h.
References CBlockHeader::hashMerkleRoot, CBlockHeader::hashPrevBlock, CBlockHeader::nBits, CBlockHeader::nNonce, CBlockHeader::nTime, and CBlockHeader::nVersion.
Referenced by CMerkleBlock::CMerkleBlock().
◆ SerializationOp()
|
inline |
◆ SetNull()
|
inline |
Definition at line 100 of file block.h.
References fChecked, CBlockHeader::SetNull(), and vtx.
Referenced by CBlock(), and ReadBlockFromDisk().
◆ ToString()
std::string CBlock::ToString | ( | ) | const |
Definition at line 22 of file block.cpp.
References CBlockHeader::GetHash(), CBlockHeader::hashMerkleRoot, CBlockHeader::hashPrevBlock, CBlockHeader::nBits, CBlockHeader::nNonce, CBlockHeader::nTime, CBlockHeader::nVersion, strprintf, base_blob< BITS >::ToString(), and vtx.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
◆ fChecked
|
mutable |
Definition at line 79 of file block.h.
Referenced by CheckBlock(), and SetNull().
◆ vtx
std::vector<CTransactionRef> CBlock::vtx |
Definition at line 76 of file block.h.
Referenced by BlockAssembler::AddToBlock(), BlockMerkleRoot(), blockToJSON(), CDeterministicMNManager::BuildNewListFromBlock(), BuildSimplifiedMNListDiff(), CalcCbTxMerkleRootQuorums(), CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs(), CheckBlock(), CheckCbTxMerkleRoots(), CMerkleBlock::CMerkleBlock(), CChainState::ConnectBlock(), CChainState::ConnectTip(), ContextualCheckBlock(), CreateDevNetGenesisBlock(), CreateGenesisBlock(), BlockAssembler::CreateNewBlock(), CChainState::DisconnectBlock(), PartiallyDownloadedBlock::FillBlock(), getblockstats(), getblocktemplate(), llmq::CChainLocksHandler::GetBlockTxs(), llmq::CQuorumBlockProcessor::GetCommitmentsFromBlock(), getspecialtxes(), GetTransaction(), gettxoutproof(), IncrementExtraNonce(), IsBlockValueValid(), IsOldBudgetBlockValueValid(), listsinceblock(), ProcessSpecialTxsInBlock(), CChainState::ReceivedBlockTransactions(), RecursiveDynamicUsage(), CChainState::RollforwardBlock(), CWallet::ScanForWalletTransactions(), SendBlockTransactions(), SerializationOp(), SetNull(), ToString(), UndoSpecialTxsInBlock(), CVerifyDB::VerifyDB(), and WriteTxIndexDataForBlock().
The documentation for this class was generated from the following files: