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

Merge two BlockCreateOptions structs, replacing null values in `x` with non&hyphen;null values from `y&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]
MergeMiningOptions(
    xref:node/BlockCreateOptions.adoc[BlockCreateOptions] x,
    xref:node/BlockCreateOptions.adoc[BlockCreateOptions] const& y);
----

== Return Value

The merged block&hyphen;creation options&period;

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

[cols="1,4"]
|===
| Name| Description
| *x*
| The base options whose null fields are filled in&period;
| *y*
| The options supplying values for the null fields of `x&period;`
|===


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