aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/mininode.py
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2019-04-23 19:30:52 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2019-04-25 20:47:07 +0000
commit9f9db39041d87c937f457b7f55f1def55c4ad6b3 (patch)
treedcd6ab85488ec6f20c3be86ddcda3b6dcdebe9ec /test/functional/test_framework/mininode.py
parent37f236acc6de08745118ac6cb4268bb5206e67c6 (diff)
downloadbitcoin-9f9db39041d87c937f457b7f55f1def55c4ad6b3.tar.xz
QA/mininode: Send all headers upfront in send_blocks_and_test to avoid sending an unconnected one
Diffstat (limited to 'test/functional/test_framework/mininode.py')
-rwxr-xr-xtest/functional/test_framework/mininode.py2
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: