node::BlockAssembler::BlockAssembler

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

NameDescription
chainstateThe chainstate to build the block on top of.
mempoolThe mempool to draw transactions from, or nullptr for an empty block.
create_optionsOptions controlling block-template creation.