1
0

lnwatcher: do not assume addr_sync.synchronizer

This commit is contained in:
ThomasV
2018-09-23 17:08:19 +02:00
parent cc7ef49c43
commit 5c5982d9f7

View File

@@ -141,7 +141,7 @@ class LNWatcher(PrintError):
def watch_address(self, addr):
with self.lock:
self.watched_addresses.add(addr)
self.addr_sync.synchronizer.add(addr)
self.addr_sync.add_address(addr)
async def check_onchain_situation(self, funding_outpoint):
ctx_candidate_txid = self.addr_sync.spent_outpoints[funding_outpoint.txid].get(funding_outpoint.output_index)