Generate a new block, without valid proof‐of‐work

Synopsis

Declared in <node/miner.h>

class BlockAssembler;

Member Functions

Name

Description

BlockAssembler [constructor]

Construct a block assembler for a given chainstate and mempool.

CreateNewBlock

Construct a new block template

Static Data Members

Name

Description

m_last_block_num_txs

The number of transactions in the last assembled block (excluding coinbase transaction)

m_last_block_weight

The weight of the last assembled block (including reserved weight for block header, txs count and coinbase tx)

Created with MrDocs