1
0

fix logic error in lnworker.on_channel_closed

This commit is contained in:
SomberNight
2019-10-29 20:39:58 +01:00
parent 427f7f8eeb
commit 75902f8e35
2 changed files with 8 additions and 6 deletions

View File

@@ -150,7 +150,9 @@ class LNWatcher(AddressSynchronizer):
def get_channel_status(self, outpoint):
return self.channel_status.get(outpoint, 'unknown')
def add_channel(self, outpoint, address):
def add_channel(self, outpoint: str, address: str) -> None:
assert isinstance(outpoint, str)
assert isinstance(address, str)
self.add_address(address)
self.channels[address] = outpoint