Skip to content

Commit

Permalink
Sleep 1 sec in mininode's wait_for_disconnect (dashpay#3538)
Browse files Browse the repository at this point in the history
* Sleep 1 sec in mininode's wait_for_disconnect

* Add a comment about a future backport that might potentially fix related issues
  • Loading branch information
UdjinM6 authored Jun 18, 2020
1 parent 737ed47 commit ed057da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/test_framework/mininode.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def on_version(self, message):
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

Expand Down

0 comments on commit ed057da

Please sign in to comment.