Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
PartiallyDownloadedBlock Class Reference

#include <blockencodings.h>

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< CTransactionReftxn_available
size_t prefilled_count = 0
size_t mempool_count = 0
size_t extra_count = 0
const CTxMemPoolpool

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

Constructor & Destructor Documentation

◆ PartiallyDownloadedBlock()

PartiallyDownloadedBlock::PartiallyDownloadedBlock ( CTxMemPool * poolIn)
inlineexplicit

Definition at line 145 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 191 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 59 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 183 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 136 of file blockencodings.h.

◆ header

CBlockHeader PartiallyDownloadedBlock::header

Definition at line 139 of file blockencodings.h.

◆ m_check_block_mutated_mock

IsBlockMutatedFn PartiallyDownloadedBlock::m_check_block_mutated_mock {nullptr}

Definition at line 143 of file blockencodings.h.

◆ mempool_count

size_t PartiallyDownloadedBlock::mempool_count = 0
protected

Definition at line 136 of file blockencodings.h.

◆ pool

const CTxMemPool* PartiallyDownloadedBlock::pool
protected

Definition at line 137 of file blockencodings.h.

◆ prefilled_count

size_t PartiallyDownloadedBlock::prefilled_count = 0
protected

Definition at line 136 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: