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

Replace null optional values with their hardcoded defaults&period;

== Synopsis

Declared in `&lt;node&sol;mining&lowbar;args&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:node/BlockCreateOptions.adoc[BlockCreateOptions]
FlattenMiningOptions(xref:node/BlockCreateOptions.adoc[BlockCreateOptions] options);
----

== Return Value

A copy of `options` with every null field replaced by its default&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *options*
| The block&hyphen;creation options to fill in&period;
|===


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