mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Add main-specific node state
This commit is contained in:
@@ -47,11 +47,13 @@ struct TestingSetup {
|
||||
nScriptCheckThreads = 3;
|
||||
for (int i=0; i < nScriptCheckThreads-1; i++)
|
||||
threadGroup.create_thread(&ThreadScriptCheck);
|
||||
RegisterNodeSignals(GetNodeSignals());
|
||||
}
|
||||
~TestingSetup()
|
||||
{
|
||||
threadGroup.interrupt_all();
|
||||
threadGroup.join_all();
|
||||
UnregisterNodeSignals(GetNodeSignals());
|
||||
#ifdef ENABLE_WALLET
|
||||
delete pwalletMain;
|
||||
pwalletMain = NULL;
|
||||
|
||||
Reference in New Issue
Block a user