node::CheckMiningOptions

Check option values for validity. Returns an error for invalid values.

Synopsis

Declared in <node/mining_args.h>

[[nodiscard]]
util::Result<void>
CheckMiningOptions(
    BlockCreateOptions options,
    bool use_argnames);

Return Value

An empty result if the options are valid, or an error otherwise.

NOTE

The return value should not be discarded.

Parameters

NameDescription
optionsThe block-creation options to validate.
use_argnamesWhether errors should name the command-line arguments rather than the struct fields.