mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-04 04:32:20 +02:00
qa: Avoid start/stop of the network thread mid-test
This commit is contained in:
@ -41,7 +41,6 @@ from test_framework.messages import (
|
||||
)
|
||||
from test_framework.mininode import (
|
||||
P2PInterface,
|
||||
network_thread_start,
|
||||
)
|
||||
|
||||
|
||||
@ -262,7 +261,6 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
|
||||
# Start a P2P connection since we'll need to create some blocks.
|
||||
node.add_p2p_connection(P2PInterface())
|
||||
network_thread_start()
|
||||
node.p2p.wait_for_verack()
|
||||
|
||||
current_height = node.getblock(node.getbestblockhash())['height']
|
||||
|
Reference in New Issue
Block a user