Overlay the options set in argsman on top of corresponding members in mempool_opts. Returns an error if one was encountered.
Declared in <node/mempool_args.h>
[[nodiscard]]
util::Result<void>
ApplyArgsManOptions(
ArgsManager const& argsman,
CChainParams const& chainparams,
kernel::MemPoolOptions& mempool_opts);
An empty result on success, or an error describing the invalid option.
The return value should not be discarded.
| Name | Description |
|---|---|
| argsman [in] | The ArgsManager in which to check set options. |
| chainparams [in] | Chain parameters used to validate and bound the options. |
| mempool_opts [inout] | The MemPoolOptions to modify according to argsman. |