Skip to content

Commit 5c543cb

Browse files
moodyjoneukreign
authored andcommitted
Wait for hub to update with all 100 new blocks
before proceeding with initial_headers_sync().
1 parent f78d789 commit 5c543cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/blockchain/test_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def test_direct_sync(self):
102102
await self.ledger.stop()
103103
initial_height = self.ledger.local_height_including_downloaded_height
104104
await self.blockchain.generate(100)
105-
while self.conductor.spv_node.server.session_manager.notified_height < initial_height + 99: # off by 1
105+
while self.conductor.spv_node.server.session_manager.notified_height < initial_height + 100:
106106
await asyncio.sleep(0.1)
107107
self.assertEqual(initial_height, self.ledger.local_height_including_downloaded_height)
108108
await self.ledger.headers.open()

0 commit comments

Comments
 (0)