mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 01:32:31 +01:00
qa: Only allow disconnecting all NodeConns
This commit is contained in:
@@ -206,7 +206,7 @@ class AcceptBlockTest(BitcoinTestFramework):
|
||||
# The node should have requested the blocks at some point, so
|
||||
# disconnect/reconnect first
|
||||
|
||||
self.nodes[0].disconnect_p2p()
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
test_node = self.nodes[0].add_p2p_connection(NodeConnCB())
|
||||
|
||||
test_node.wait_for_verack()
|
||||
@@ -291,7 +291,7 @@ class AcceptBlockTest(BitcoinTestFramework):
|
||||
except AssertionError:
|
||||
test_node.wait_for_disconnect()
|
||||
|
||||
self.nodes[0].disconnect_p2p()
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
test_node = self.nodes[0].add_p2p_connection(NodeConnCB())
|
||||
|
||||
NetworkThread().start() # Start up network handling in another thread
|
||||
|
||||
Reference in New Issue
Block a user