1
0

multi-wallet: properly stop lnworker/lnwatcher

This commit is contained in:
SomberNight
2020-05-01 04:39:49 +02:00
parent 8389892dbd
commit 2b1a150c52
5 changed files with 38 additions and 9 deletions

View File

@@ -147,6 +147,10 @@ class LNWatcher(AddressSynchronizer):
# status gets populated when we run
self.channel_status = {}
def stop(self):
super().stop()
util.unregister_callback(self.on_network_update)
def get_channel_status(self, outpoint):
return self.channel_status.get(outpoint, 'unknown')