mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-18 03:27:41 +02:00
[tests] Use network_thread_start() in tests.
This commit is contained in:
@@ -15,6 +15,7 @@ from test_framework.test_framework import ComparisonTestFramework
|
||||
from test_framework.util import *
|
||||
from test_framework.comptool import TestManager, TestInstance, RejectResult
|
||||
from test_framework.blocktools import *
|
||||
from test_framework.mininode import network_thread_start
|
||||
import copy
|
||||
import time
|
||||
|
||||
@@ -32,7 +33,7 @@ class InvalidBlockRequestTest(ComparisonTestFramework):
|
||||
test.add_all_connections(self.nodes)
|
||||
self.tip = None
|
||||
self.block_time = None
|
||||
NetworkThread().start() # Start up network handling in another thread
|
||||
network_thread_start()
|
||||
test.run()
|
||||
|
||||
def get_tests(self):
|
||||
|
||||
Reference in New Issue
Block a user