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

#include <blockencodings.h>

Inheritance diagram for PartiallyDownloadedBlock:
[legend]
Collaboration diagram for PartiallyDownloadedBlock:
[legend]

Public Types

using IsBlockMutatedFn = std::function< bool(const CBlock &, bool)>
 

Public Member Functions

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

Public Attributes

CBlockHeader header
 
IsBlockMutatedFn m_check_block_mutated_mock {nullptr}
 

Protected Attributes

std::vector< CTransactionRef > txn_available
 
size_t prefilled_count = 0
 
size_t mempool_count = 0
 
size_t extra_count = 0
 
size_t prefilled_size = 0
 
size_t mempool_size = 0
 
size_t extra_size = 0
 
size_t redundant_prefilled_mempool_count = 0
 
size_t redundant_prefilled_mempool_size = 0
 
size_t redundant_prefilled_extrapool_count = 0
 
size_t redundant_prefilled_extrapool_size = 0
 
const CTxMemPool * pool
 

Detailed Description

Definition at line 133 of file blockencodings.h.

Member Typedef Documentation

◆ IsBlockMutatedFn

using PartiallyDownloadedBlock::IsBlockMutatedFn = std::function<bool(const CBlock&, bool)>

Definition at line 155 of file blockencodings.h.

Constructor & Destructor Documentation

◆ PartiallyDownloadedBlock()

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( CTxMemPool *  poolIn)
inlineexplicit

Definition at line 158 of file blockencodings.h.

Member Function Documentation

◆ FillBlock()

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

Definition at line 243 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< std::pair< Wtxid, CTransactionRef > > &  extra_txn 
)

Definition at line 60 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 235 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 139 of file blockencodings.h.

◆ extra_size

size_t PartiallyDownloadedBlock::extra_size = 0
protected

Definition at line 140 of file blockencodings.h.

◆ header

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 152 of file blockencodings.h.

◆ m_check_block_mutated_mock

IsBlockMutatedFn PartiallyDownloadedBlock::m_check_block_mutated_mock {nullptr}

Definition at line 156 of file blockencodings.h.

◆ mempool_count

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 139 of file blockencodings.h.

◆ mempool_size

size_t PartiallyDownloadedBlock::mempool_size = 0
protected

Definition at line 140 of file blockencodings.h.

◆ pool

const CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 150 of file blockencodings.h.

◆ prefilled_count

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 139 of file blockencodings.h.

◆ prefilled_size

size_t PartiallyDownloadedBlock::prefilled_size = 0
protected

Definition at line 140 of file blockencodings.h.

◆ redundant_prefilled_extrapool_count

size_t PartiallyDownloadedBlock::redundant_prefilled_extrapool_count = 0
protected

Definition at line 148 of file blockencodings.h.

◆ redundant_prefilled_extrapool_size

size_t PartiallyDownloadedBlock::redundant_prefilled_extrapool_size = 0
protected

Definition at line 148 of file blockencodings.h.

◆ redundant_prefilled_mempool_count

size_t PartiallyDownloadedBlock::redundant_prefilled_mempool_count = 0
protected

Definition at line 146 of file blockencodings.h.

◆ redundant_prefilled_mempool_size

size_t PartiallyDownloadedBlock::redundant_prefilled_mempool_size = 0
protected

Definition at line 146 of file blockencodings.h.

◆ txn_available

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

Definition at line 135 of file blockencodings.h.


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