PartiallyDownloadedBlock

A block being reconstructed from a compact block plus mempool/extra transactions.

Synopsis

Declared in <blockencodings.h>

class PartiallyDownloadedBlock;

Type Aliases

NameDescription
IsBlockMutatedFn Callable used to check whether a reconstructed block is mutated.

Member Functions

NameDescription
PartiallyDownloadedBlock [constructor]Constructs a reconstruction backed by the given memory pool.
FillBlock Fills the block with the supplied missing transactions and reports the result.
InitData Initializes reconstruction from a compact block and a list of extra transactions.
IsTxAvailable Returns whether the transaction at the given block index is already available.

Data Members

NameDescription
header The block header.
m_check_block_mutated_mock Optional override for the mutation check, used in tests.

Protected Data Members

NameDescription
extra_count Counts of transactions sourced from the compact block, the mempool, and the extra pool.
mempool_count Counts of transactions sourced from the compact block, the mempool, and the extra pool.
pool Memory pool consulted to fill in missing transactions.
prefilled_count Counts of transactions sourced from the compact block, the mempool, and the extra pool.
txn_available Transactions filled in so far, indexed by their position in the block.