kernel: Add chainstate manager option for setting worker threads

Re-use the same pattern used for the context options. This allows users
to set the number of threads used in the validation thread pool.
This commit is contained in:
TheCharlatan
2024-11-17 17:36:48 +01:00
parent 65571c36a2
commit e2c1bd3d71
4 changed files with 24 additions and 0 deletions

View File

@@ -502,5 +502,6 @@ BOOST_AUTO_TEST_CASE(btck_chainman_tests)
auto context{create_context(notifications, ChainType::MAINNET)};
ChainstateManagerOptions chainman_opts{context, test_directory.m_directory.string(), (test_directory.m_directory / "blocks").string()};
chainman_opts.SetWorkerThreads(4);
ChainMan chainman{context, chainman_opts};
}