diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2019-04-23 19:30:52 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2019-04-25 20:47:07 +0000 |
commit | 9f9db39041d87c937f457b7f55f1def55c4ad6b3 (patch) | |
tree | dcd6ab85488ec6f20c3be86ddcda3b6dcdebe9ec | |
parent | 37f236acc6de08745118ac6cb4268bb5206e67c6 (diff) | |
download | bitcoin-9f9db39041d87c937f457b7f55f1def55c4ad6b3.tar.xz |
QA/mininode: Send all headers upfront in send_blocks_and_test to avoid sending an unconnected one
-rwxr-xr-x | test/functional/test_framework/mininode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index ac7cc068bd..318ca63e01 100755 --- a/test/functional/test_framework/mininode.py +++ b/test/functional/test_framework/mininode.py @@ -534,7 +534,7 @@ class P2PDataStore(P2PInterface): for b in blocks: self.send_message(msg_block(block=b)) else: - self.send_message(msg_headers([CBlockHeader(blocks[-1])])) + self.send_message(msg_headers([CBlockHeader(block) for block in blocks])) wait_until(lambda: blocks[-1].sha256 in self.getdata_requests, timeout=timeout, lock=mininode_lock) if expect_disconnect: |