[tests] Use network_thread_start() in tests.

This commit is contained in:
John Newbery
2017-12-08 11:45:46 -05:00
parent 5fc6e71d19
commit 74e64f24b8
22 changed files with 37 additions and 34 deletions

View File

@@ -90,7 +90,7 @@ from test_framework.mininode import (
CBlockHeader,
CInv,
NODE_WITNESS,
NetworkThread,
network_thread_start,
P2PInterface,
mininode_lock,
msg_block,
@@ -238,7 +238,7 @@ class SendHeadersTest(BitcoinTestFramework):
# will occur outside of direct fetching
test_node = self.nodes[0].add_p2p_connection(BaseNode(), services=NODE_WITNESS)
NetworkThread().start() # Start up network handling in another thread
network_thread_start()
# Test logic begins here
inv_node.wait_for_verack()