node::FlattenMiningOptions

Replace null optional values with their hardcoded defaults.

Synopsis

Declared in <node/mining_args.h>

[[nodiscard]]
BlockCreateOptions
FlattenMiningOptions(BlockCreateOptions options);

Return Value

A copy of options with every null field replaced by its default.

NOTE

The return value should not be discarded.

Parameters

NameDescription
optionsThe block-creation options to fill in.