Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <blockencodings.h>

+ Collaboration diagram for PartiallyDownloadedBlock:

Public Member Functions

 PartiallyDownloadedBlock (CTxMemPool *poolIn)
 
ReadStatus InitData (const CBlockHeaderAndShortTxIDs &cmpctblock, const std::vector< std::pair< uint256, CTransactionRef >> &extra_txn)
 
bool IsTxAvailable (size_t index) const
 
ReadStatus FillBlock (CBlock &block, const std::vector< CTransactionRef > &vtx_missing)
 

Public Attributes

CBlockHeader header
 

Protected Attributes

std::vector< CTransactionReftxn_available
 
size_t prefilled_count = 0
 
size_t mempool_count = 0
 
size_t extra_count = 0
 
CTxMemPoolpool
 

Detailed Description

Definition at line 194 of file blockencodings.h.

Constructor & Destructor Documentation

◆ PartiallyDownloadedBlock()

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( CTxMemPool poolIn)
inlineexplicit

Definition at line 201 of file blockencodings.h.

Member Function Documentation

◆ FillBlock()

◆ InitData()

◆ IsTxAvailable()

bool PartiallyDownloadedBlock::IsTxAvailable ( size_t  index) const

Definition at line 172 of file blockencodings.cpp.

References header, CBlockHeader::IsNull(), and txn_available.

Referenced by ProcessMessage().

Member Data Documentation

◆ extra_count

size_t PartiallyDownloadedBlock::extra_count = 0
protected

Definition at line 197 of file blockencodings.h.

Referenced by FillBlock(), and InitData().

◆ header

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 200 of file blockencodings.h.

Referenced by FillBlock(), InitData(), and IsTxAvailable().

◆ mempool_count

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 197 of file blockencodings.h.

Referenced by FillBlock(), and InitData().

◆ pool

CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 198 of file blockencodings.h.

Referenced by InitData().

◆ prefilled_count

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 197 of file blockencodings.h.

Referenced by FillBlock(), and InitData().

◆ txn_available

std::vector<CTransactionRef> PartiallyDownloadedBlock::txn_available
protected

Definition at line 196 of file blockencodings.h.

Referenced by FillBlock(), InitData(), and IsTxAvailable().


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