From 9f9db39041d87c937f457b7f55f1def55c4ad6b3 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 23 Apr 2019 19:30:52 +0000 Subject: [PATCH] QA/mininode: Send all headers upfront in send_blocks_and_test to avoid sending an unconnected one --- test/functional/test_framework/mininode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: