Read the mining options set in args. Returns an error if one was encountered.

Synopsis

Declared in <node/mining_args.h>

[[nodiscard]]
util::Result<BlockCreateOptions>
ReadMiningArgs(ArgsManager const& args);

Return Value

The block‐creation options on success, or an error on failure.

Note

The return value should not be discarded.

Parameters

Name

Description

args

Argument manager holding the parsed settings.

Created with MrDocs