Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | Public Attributes | Protected Attributes | List of all members
PartiallyDownloadedBlock Class Reference

#include <blockencodings.h>

Collaboration diagram for PartiallyDownloadedBlock:
[legend]

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 196 of file blockencodings.h.

Constructor & Destructor Documentation

◆ PartiallyDownloadedBlock()

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( CTxMemPool poolIn)
inlineexplicit

Definition at line 203 of file blockencodings.h.

Member Function Documentation

◆ FillBlock()

ReadStatus PartiallyDownloadedBlock::FillBlock ( CBlock block,
const std::vector< CTransactionRef > &  vtx_missing 
)

Definition at line 177 of file blockencodings.cpp.

Here is the call graph for this function:

◆ InitData()

ReadStatus PartiallyDownloadedBlock::InitData ( const CBlockHeaderAndShortTxIDs cmpctblock,
const std::vector< std::pair< uint256, CTransactionRef >> &  extra_txn 
)

Definition at line 49 of file blockencodings.cpp.

Here is the call graph for this function:

◆ IsTxAvailable()

bool PartiallyDownloadedBlock::IsTxAvailable ( size_t  index) const

Definition at line 171 of file blockencodings.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ extra_count

size_t PartiallyDownloadedBlock::extra_count = 0
protected

Definition at line 199 of file blockencodings.h.

◆ header

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 202 of file blockencodings.h.

◆ mempool_count

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 199 of file blockencodings.h.

◆ pool

CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 200 of file blockencodings.h.

◆ prefilled_count

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 199 of file blockencodings.h.

◆ txn_available

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

Definition at line 198 of file blockencodings.h.


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