[#node-BlockAssembler]
= xref:node.adoc[node]::BlockAssembler
:relfileprefix: ../
:mrdocs:

Generate a new block, without valid proof&hyphen;of&hyphen;work

== Synopsis

Declared in `&lt;node&sol;miner&period;h&gt;`

[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&period;
| 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&lowbar;last&lowbar;block&lowbar;num&lowbar;txs`] 
| The number of transactions in the last assembled block (excluding coinbase transaction)
| xref:node/BlockAssembler/m_last_block_weight.adoc[`m&lowbar;last&lowbar;block&lowbar;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]#
