mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
[tests] Don't acquire mininode_lock twice in wait_for_broadcast()
This commit is contained in:
parent
edae6075aa
commit
9d80762fa0
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue