Construct a block assembler for a given chainstate and mempool.

Synopsis

Declared in <node/miner.h>

explicit
BlockAssembler(
    Chainstate& chainstate,
    CTxMemPool const* mempool,
    BlockCreateOptions create_options);

Parameters

Name

Description

chainstate

The chainstate to build the block on top of.

mempool

The mempool to draw transactions from, or nullptr for an empty block.

create_options

Options controlling block‐template creation.

Created with MrDocs