Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Public Member Functions | Public Attributes | Protected Attributes | Private Types | Private Attributes | List of all members
PartiallyDownloadedBlock Class Reference

#include <blockencodings.h>

Collaboration diagram for PartiallyDownloadedBlock:
[legend]

Classes

struct  CTransactionRefCompare
 

Public Member Functions

 PartiallyDownloadedBlock (const Config &configIn, CTxMemPool *poolIn)
 
ReadStatus InitData (const CBlockHeaderAndShortTxIDs &cmpctblock, const std::vector< std::pair< TxHash, 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

size_t prefilled_count = 0
 
size_t mempool_count = 0
 
size_t extra_count = 0
 
const CTxMemPoolpool
 
const Configconfig
 

Private Types

using TransactionShortIdProcessor = ShortIdProcessor< PrefilledTransaction, ShortIdProcessorPrefilledTransactionAdapter, CTransactionRefCompare >
 

Private Attributes

std::shared_ptr< TransactionShortIdProcessorshortidProcessor
 

Detailed Description

Definition at line 141 of file blockencodings.h.

Member Typedef Documentation

◆ TransactionShortIdProcessor

Definition at line 149 of file blockencodings.h.

Constructor & Destructor Documentation

◆ PartiallyDownloadedBlock()

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( const Config configIn,
CTxMemPool poolIn 
)
inline

Definition at line 166 of file blockencodings.h.

Member Function Documentation

◆ FillBlock()

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

Definition at line 148 of file blockencodings.cpp.

Here is the call graph for this function:

◆ InitData()

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

Definition at line 51 of file blockencodings.cpp.

Here is the call graph for this function:

◆ IsTxAvailable()

bool PartiallyDownloadedBlock::IsTxAvailable ( size_t  index) const

Definition at line 138 of file blockencodings.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ config

const Config* PartiallyDownloadedBlock::config
protected

Definition at line 162 of file blockencodings.h.

◆ extra_count

size_t PartiallyDownloadedBlock::extra_count = 0
protected

Definition at line 160 of file blockencodings.h.

◆ header

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 165 of file blockencodings.h.

◆ mempool_count

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 160 of file blockencodings.h.

◆ pool

const CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 161 of file blockencodings.h.

◆ prefilled_count

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 160 of file blockencodings.h.

◆ shortidProcessor

std::shared_ptr<TransactionShortIdProcessor> PartiallyDownloadedBlock::shortidProcessor
private

Definition at line 157 of file blockencodings.h.


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