qa: Fix race condition in sendheaders.py

This commit is contained in:
Suhas Daftuar
2017-10-20 16:24:10 -04:00
committed by Suhas Daftuar
parent c96b2e4f09
commit 6d51eaefe9
2 changed files with 8 additions and 2 deletions

View File

@@ -225,6 +225,10 @@ class SendHeadersTest(BitcoinTestFramework):
inv_node.wait_for_verack()
test_node.wait_for_verack()
# Ensure verack's have been processed by our peer
inv_node.sync_with_ping()
test_node.sync_with_ping()
tip = int(self.nodes[0].getbestblockhash(), 16)
# PART 1