Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
PartiallyDownloadedBlock Class Reference

#include <blockencodings.h>

Collaboration diagram for PartiallyDownloadedBlock:
[legend]

Public Types

using CheckBlockFn = std::function< bool(const CBlock &, BlockValidationState &, const Consensus::Params &, bool, bool)>
 

Public Member Functions

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

Public Attributes

CBlockHeader header
 
CheckBlockFn m_check_block_mock {nullptr}
 

Protected Attributes

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

Detailed Description

Definition at line 135 of file blockencodings.h.

Member Typedef Documentation

◆ CheckBlockFn

using PartiallyDownloadedBlock::CheckBlockFn = std::function<bool(const CBlock&, BlockValidationState&, const Consensus::Params&, bool, bool)>

Definition at line 144 of file blockencodings.h.

Constructor & Destructor Documentation

◆ PartiallyDownloadedBlock()

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( CTxMemPool poolIn)
inlineexplicit

Definition at line 147 of file blockencodings.h.

Member Function Documentation

◆ FillBlock()

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

Definition at line 183 of file blockencodings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitData()

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

Definition at line 50 of file blockencodings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsTxAvailable()

bool PartiallyDownloadedBlock::IsTxAvailable ( size_t  index) const

Definition at line 175 of file blockencodings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ extra_count

size_t PartiallyDownloadedBlock::extra_count = 0
protected

Definition at line 138 of file blockencodings.h.

◆ header

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 141 of file blockencodings.h.

◆ m_check_block_mock

CheckBlockFn PartiallyDownloadedBlock::m_check_block_mock {nullptr}

Definition at line 145 of file blockencodings.h.

◆ mempool_count

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 138 of file blockencodings.h.

◆ pool

const CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 139 of file blockencodings.h.

◆ prefilled_count

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 138 of file blockencodings.h.

◆ txn_available

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

Definition at line 137 of file blockencodings.h.


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