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

Name

Description

options

The block‐creation options to fill in.

Created with MrDocs