mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
Make CCheckQueue destructor stop worker threads
This commit is contained in:
@@ -2047,11 +2047,6 @@ DisconnectResult Chainstate::DisconnectBlock(const CBlock& block, const CBlockIn
|
||||
return fClean ? DISCONNECT_OK : DISCONNECT_UNCLEAN;
|
||||
}
|
||||
|
||||
void ChainstateManager::StopScriptCheckWorkerThreads()
|
||||
{
|
||||
m_script_check_queue.StopWorkerThreads();
|
||||
}
|
||||
|
||||
/**
|
||||
* Threshold condition checker that triggers when unknown versionbits are seen on the network.
|
||||
*/
|
||||
@@ -5754,8 +5749,6 @@ ChainstateManager::ChainstateManager(const util::SignalInterrupt& interrupt, Opt
|
||||
|
||||
ChainstateManager::~ChainstateManager()
|
||||
{
|
||||
StopScriptCheckWorkerThreads();
|
||||
|
||||
LOCK(::cs_main);
|
||||
|
||||
m_versionbitscache.Clear();
|
||||
|
||||
Reference in New Issue
Block a user