Fabcoin Core  0.16.2
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 194 of file blockencodings.h.

Constructor & Destructor Documentation

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( CTxMemPool poolIn)
inline

Definition at line 201 of file blockencodings.h.

Member Function Documentation

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:

Here is the caller graph for this function:

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

Definition at line 48 of file blockencodings.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool PartiallyDownloadedBlock::IsTxAvailable ( size_t  index) const

Definition at line 171 of file blockencodings.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

size_t PartiallyDownloadedBlock::extra_count = 0
protected

Definition at line 197 of file blockencodings.h.

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 200 of file blockencodings.h.

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 197 of file blockencodings.h.

CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 198 of file blockencodings.h.

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 197 of file blockencodings.h.

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

Definition at line 196 of file blockencodings.h.


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