aboutsummaryrefslogtreecommitdiff
path: root/test/functional/bip9-softforks.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-12-08 11:45:46 -0500
committerJohn Newbery <john@johnnewbery.com>2017-12-11 09:17:21 -0500
commit74e64f24b8cb701379b34442f21332361dcc91f9 (patch)
tree3ee92d07ceebf41e012931c689d74beda27ebe73 /test/functional/bip9-softforks.py
parent5fc6e71d1994d58c25edebd8063555998752349a (diff)
downloadbitcoin-74e64f24b8cb701379b34442f21332361dcc91f9.tar.xz
[tests] Use network_thread_start() in tests.
Diffstat (limited to 'test/functional/bip9-softforks.py')
-rwxr-xr-xtest/functional/bip9-softforks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/bip9-softforks.py b/test/functional/bip9-softforks.py
index ec4d1d9365..4cd6a177aa 100755
--- a/test/functional/bip9-softforks.py
+++ b/test/functional/bip9-softforks.py
@@ -22,7 +22,7 @@ import itertools
from test_framework.test_framework import ComparisonTestFramework
from test_framework.util import *
-from test_framework.mininode import CTransaction, NetworkThread
+from test_framework.mininode import CTransaction, network_thread_start
from test_framework.blocktools import create_coinbase, create_block
from test_framework.comptool import TestInstance, TestManager
from test_framework.script import CScript, OP_1NEGATE, OP_CHECKSEQUENCEVERIFY, OP_DROP
@@ -36,7 +36,7 @@ class BIP9SoftForksTest(ComparisonTestFramework):
def run_test(self):
self.test = TestManager(self, self.options.tmpdir)
self.test.add_all_connections(self.nodes)
- NetworkThread().start() # Start up network handling in another thread
+ network_thread_start()
self.test.run()
def create_transaction(self, node, coinbase, to_address, amount):
@@ -245,7 +245,7 @@ class BIP9SoftForksTest(ComparisonTestFramework):
self.setup_chain()
self.setup_network()
self.test.add_all_connections(self.nodes)
- NetworkThread().start()
+ network_thread_start()
self.test.p2p_connections[0].wait_for_verack()
def get_tests(self):