1
0

channeldb.load_data: attempt at fixing race

closes #5525
This commit is contained in:
SomberNight
2019-09-05 18:32:45 +02:00
parent 4f741cfccc
commit edf186da0d
3 changed files with 6 additions and 0 deletions

View File

@@ -241,6 +241,7 @@ class Peer(Logger):
await group.spawn(self.process_gossip())
async def process_gossip(self):
await self.channel_db.data_loaded.wait()
# verify in peer's TaskGroup so that we fail the connection
while True:
await asyncio.sleep(5)