[#node-BlockAssembler] = xref:node.adoc[node]::BlockAssembler :relfileprefix: ../ :mrdocs: Generate a new block, without valid proof‐of‐work == Synopsis Declared in `<node/miner.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BlockAssembler; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:node/BlockAssembler/2constructor.adoc[`BlockAssembler`] [.small]#[constructor]# | Construct a block assembler for a given chainstate and mempool. | xref:node/BlockAssembler/CreateNewBlock.adoc[`CreateNewBlock`] | Construct a new block template |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:node/BlockAssembler/m_last_block_num_txs.adoc[`m_last_block_num_txs`] | The number of transactions in the last assembled block (excluding coinbase transaction) | xref:node/BlockAssembler/m_last_block_weight.adoc[`m_last_block_weight`] | The weight of the last assembled block (including reserved weight for block header, txs count and coinbase tx) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#