lnwatcher: wait until lnwatcher is fully synchronized before check_onchain_situation

This commit is contained in:
ThomasV 2019-07-01 20:26:58 +02:00
parent a8ce8109be
commit c7b9bdc5f5

View file

@ -227,7 +227,7 @@ class LNWatcher(AddressSynchronizer):
if not self.synchronizer:
self.logger.info("synchronizer not set yet")
return
if not self.synchronizer.is_up_to_date():
if not self.up_to_date:
return
for address, outpoint in await self.sweepstore.list_channel_info():
await self.check_onchain_situation(address, outpoint)