mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add main-specific node state
This commit is contained in:
parent
70370ae502
commit
b2864d2fb3
8 changed files with 158 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue