Use sync_with_ping to ensure that we don't start generating blocks too early

This commit is contained in:
Alexander Block 2019-07-08 10:50:28 +02:00 committed by Pasta
parent 3fe858e53f
commit 72a1b6f59d
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -239,6 +239,8 @@ class SendHeadersTest(BitcoinTestFramework):
# Test logic begins here # Test logic begins here
inv_node.wait_for_verack() inv_node.wait_for_verack()
test_node.wait_for_verack() test_node.wait_for_verack()
inv_node.sync_with_ping()
test_node.sync_with_ping()
self.test_null_locators(test_node) self.test_null_locators(test_node)
self.test_nonnull_locators(test_node, inv_node) self.test_nonnull_locators(test_node, inv_node)