Set the number of available worker threads used during validation.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
void
btck_chainstate_manager_options_set_worker_threads_num(
    btck_ChainstateManagerOptions* chainstate_manager_options,
    int worker_threads);

Parameters

Name

Description

chainstate_manager_options [in]

Non‐null, options to be set.

worker_threads [in]

The number of worker threads that should be spawned in the thread pool used for validation. When set to 0 no parallel verification is done. The value range is clamped internally between 0 and 15.

Created with MrDocs