mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-03 09:23:01 +01:00
qa: Only allow disconnecting all NodeConns
This commit is contained in:
@@ -54,7 +54,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
# p2p_conns[2] will test resetting the counters
|
||||
p2p_conns = []
|
||||
|
||||
for i in range(3):
|
||||
for _ in range(3):
|
||||
p2p_conns.append(self.nodes[0].add_p2p_connection(TestNode()))
|
||||
|
||||
NetworkThread().start() # Start up network handling in another thread
|
||||
@@ -139,8 +139,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Peer 2 able to download old block")
|
||||
|
||||
for i in range(3):
|
||||
self.nodes[0].disconnect_p2p()
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
|
||||
#stop and start node 0 with 1MB maxuploadtarget, whitelist 127.0.0.1
|
||||
self.log.info("Restarting nodes with -whitelist=127.0.0.1")
|
||||
|
||||
Reference in New Issue
Block a user