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

Construct a block assembler for a given chainstate and mempool&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
BlockAssembler(
    xref:Chainstate.adoc[Chainstate]& chainstate,
    xref:CTxMemPool.adoc[CTxMemPool] const* mempool,
    xref:node/BlockCreateOptions.adoc[BlockCreateOptions] create&lowbar;options);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate*
| The chainstate to build the block on top of&period;
| *mempool*
| The mempool to draw transactions from, or nullptr for an empty block&period;
| *create&lowbar;options*
| Options controlling block&hyphen;template creation&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
