aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-06-05 10:58:25 -0400
committerJohn Newbery <john@johnnewbery.com>2020-06-05 10:58:25 -0400
commit9d80762fa0931fe553fad241e95bcc1515ef0e95 (patch)
tree8b44970400ad903460d34f33fcb6960555e4483e /test/functional/test_framework
parentedae6075aa3b1169c84b65e76fd48d68242a294e (diff)
downloadbitcoin-9d80762fa0931fe553fad241e95bcc1515ef0e95.tar.xz
[tests] Don't acquire mininode_lock twice in wait_for_broadcast()
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-xtest/functional/test_framework/mininode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py
index 45063aaff2..69307d1960 100755
--- a/test/functional/test_framework/mininode.py
+++ b/test/functional/test_framework/mininode.py
@@ -669,6 +669,6 @@ class P2PTxInvStore(P2PInterface):
The mempool should mark unbroadcast=False for these transactions.
"""
# Wait until invs have been received (and getdatas sent) for each txid.
- self.wait_until(lambda: set(self.get_invs()) == set([int(tx, 16) for tx in txns]), timeout)
+ self.wait_until(lambda: set(self.tx_invs_received.keys()) == set([int(tx, 16) for tx in txns]), timeout)
# Flush messages and wait for the getdatas to be processed
self.sync_with_ping()