Sleep 1 sec in mininode's wait_for_disconnect (#3538)

* Sleep 1 sec in mininode's wait_for_disconnect

* Add a comment about a future backport that might potentially fix related issues
This commit is contained in:
UdjinM6 2020-06-18 11:41:27 +03:00 committed by GitHub
parent 737ed479bc
commit ed057dadd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,6 +373,8 @@ class P2PInterface(P2PConnection):
def wait_for_disconnect(self, timeout=60):
test_function = lambda: self.state != "connected"
wait_until(test_function, timeout=timeout, lock=mininode_lock)
# This is a hack. The related issues should be fixed by bitcoin 14119 and 14457.
time.sleep(1)
# Message receiving helper methods