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
Name |
Description |
options |
The block‐creation options to validate. |
use_argnames |
Whether errors should name the command‐line arguments rather than the struct fields. |
Created with MrDocs