mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-13 00:54:53 +01:00
test: Fix intermittent issue in p2p_orphan_handling.py
This commit is contained in:
@@ -827,7 +827,8 @@ class TestNode():
|
||||
|
||||
def disconnect_p2ps(self):
|
||||
"""Close all p2p connections to the node.
|
||||
Use only after each p2p has sent a version message to ensure the wait works."""
|
||||
The state of the peers (such as txrequests) may not be fully cleared
|
||||
yet, even after this method returns."""
|
||||
for p in self.p2ps:
|
||||
p.peer_disconnect()
|
||||
del self.p2ps[:]
|
||||
|
||||
Reference in New Issue
Block a user