Skip to content

Commit edae607

Browse files
committed
[tests] Only acquire lock once in p2p_compactblocks.py
1 parent 0fc6ea2 commit edae607

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/functional/p2p_compactblocks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,9 @@ def test_compactblock_construction(self, test_node, use_witness_address=True):
305305
self.check_compactblock_construction_from_block(version, header_and_shortids, block_hash, block)
306306

307307
# Now fetch the compact block using a normal non-announce getdata
308-
with mininode_lock:
309-
test_node.clear_block_announcement()
310-
inv = CInv(MSG_CMPCT_BLOCK, block_hash)
311-
test_node.send_message(msg_getdata([inv]))
308+
test_node.clear_block_announcement()
309+
inv = CInv(MSG_CMPCT_BLOCK, block_hash)
310+
test_node.send_message(msg_getdata([inv]))
312311

313312
wait_until(test_node.received_block_announcement, timeout=30, lock=mininode_lock)
314313

0 commit comments

Comments
 (0)