aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-12-08 23:33:24 -0800
committerGavin Andresen <[email protected]>2013-12-08 23:33:24 -0800
commit7202d9d9bf6e7442ea8e945b271dcec079ff5239 (patch)
treee34d33bf5a9309ce4e60ba1e1889a5bf1b6c7beb /src/test/test_bitcoin.cpp
parentMerge pull request #3348 (diff)
parentAdd main-specific node state (diff)
downloaddiscoin-7202d9d9bf6e7442ea8e945b271dcec079ff5239.tar.xz
discoin-7202d9d9bf6e7442ea8e945b271dcec079ff5239.zip
Merge pull request #3276 from sipa/nodestate
Add main-specific node state & move ban score
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-rw-r--r--src/test/test_bitcoin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index a804ff380..a4592fe80 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -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;