node::MergeMiningOptions

Merge two BlockCreateOptions structs, replacing null values in x with non-null values from y.

Synopsis

Declared in <node/mining_args.h>

[[nodiscard]]
BlockCreateOptions
MergeMiningOptions(
    BlockCreateOptions x,
    BlockCreateOptions const& y);

Return Value

The merged block-creation options.

NOTE

The return value should not be discarded.

Parameters

NameDescription
xThe base options whose null fields are filled in.
yThe options supplying values for the null fields of x.