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

Build a block template until the target feerate is hit&period; If target&lowbar;feerate is not given, builds a block template until all transactions have been selected&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
BuildMockTemplate(std::optional&lt;CFeeRate&gt; target&lowbar;feerate);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *target&lowbar;feerate*
| Feerate at which to stop adding transactions, or std&colon;&colon;nullopt to add all&period;
|===


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