From c7b9bdc5f5000ef26aa15d8f04c02d53fe56f29e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 1 Jul 2019 20:26:58 +0200 Subject: [PATCH] lnwatcher: wait until lnwatcher is fully synchronized before check_onchain_situation --- electrum/lnwatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py index 3dd516ef2..2bf4332aa 100644 --- a/electrum/lnwatcher.py +++ b/electrum/lnwatcher.py @@ -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)