diff options
author | John Newbery <john@johnnewbery.com> | 2020-06-05 10:57:13 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-06-05 10:57:13 -0400 |
commit | edae6075aa3b1169c84b65e76fd48d68242a294e (patch) | |
tree | 50742c04418697232b432e3ce7a17721942a0237 /test/functional/p2p_compactblocks.py | |
parent | 0fc6ea216c00fff470bd876c53418afca63bf7e9 (diff) | |
download | bitcoin-edae6075aa3b1169c84b65e76fd48d68242a294e.tar.xz |
[tests] Only acquire lock once in p2p_compactblocks.py
Diffstat (limited to 'test/functional/p2p_compactblocks.py')
-rwxr-xr-x | test/functional/p2p_compactblocks.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/p2p_compactblocks.py b/test/functional/p2p_compactblocks.py index d77a744758..0b3738b572 100755 --- a/test/functional/p2p_compactblocks.py +++ b/test/functional/p2p_compactblocks.py @@ -305,10 +305,9 @@ class CompactBlocksTest(BitcoinTestFramework): self.check_compactblock_construction_from_block(version, header_and_shortids, block_hash, block) # Now fetch the compact block using a normal non-announce getdata - with mininode_lock: - test_node.clear_block_announcement() - inv = CInv(MSG_CMPCT_BLOCK, block_hash) - test_node.send_message(msg_getdata([inv])) + test_node.clear_block_announcement() + inv = CInv(MSG_CMPCT_BLOCK, block_hash) + test_node.send_message(msg_getdata([inv])) wait_until(test_node.received_block_announcement, timeout=30, lock=mininode_lock) |