Check option values for validity. Returns an error for invalid values.
Declared in <node/mining_args.h>
[[nodiscard]]
util::Result<void>
CheckMiningOptions(
BlockCreateOptions options,
bool use_argnames);
An empty result if the options are valid, or an error otherwise.
The return value should not be discarded.
| Name | Description |
|---|---|
| options | The block-creation options to validate. |
| use_argnames | Whether errors should name the command-line arguments rather than the struct fields. |