Skip to content

Commit 9d80762

Browse files
committed
[tests] Don't acquire mininode_lock twice in wait_for_broadcast()
1 parent edae607 commit 9d80762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/mininode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,6 @@ def wait_for_broadcast(self, txns, timeout=60):
669669
The mempool should mark unbroadcast=False for these transactions.
670670
"""
671671
# Wait until invs have been received (and getdatas sent) for each txid.
672-
self.wait_until(lambda: set(self.get_invs()) == set([int(tx, 16) for tx in txns]), timeout)
672+
self.wait_until(lambda: set(self.tx_invs_received.keys()) == set([int(tx, 16) for tx in txns]), timeout)
673673
# Flush messages and wait for the getdatas to be processed
674674
self.sync_with_ping()

0 commit comments

Comments
 (0)