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

Synopsis

Declared in <blockencodings.h>

class PartiallyDownloadedBlock;

Type Aliases

Name

Description

IsBlockMutatedFn

Callable used to check whether a reconstructed block is mutated.

Member Functions

Name

Description

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

Name

Description

header

The block header.

m_check_block_mutated_mock

Optional override for the mutation check, used in tests.

Protected Data Members

Name

Description

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.

Created with MrDocs