Remove g_parallel_script_checks

This commit is contained in:
MacroFake 2022-09-02 15:07:31 +02:00
parent fa7c834b9f
commit fa9ebec096
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
5 changed files with 5 additions and 11 deletions

View file

@ -198,10 +198,8 @@ ChainTestingSetup::ChainTestingSetup(const std::string& chainName, const std::ve
m_node.chainman = std::make_unique<ChainstateManager>(chainman_opts);
m_node.chainman->m_blockman.m_block_tree_db = std::make_unique<CBlockTreeDB>(m_cache_sizes.block_tree_db, true);
// Start script-checking threads. Set g_parallel_script_checks to true so they are used.
constexpr int script_check_threads = 2;
StartScriptCheckWorkerThreads(script_check_threads);
g_parallel_script_checks = true;
}
ChainTestingSetup::~ChainTestingSetup()