1
0

LNPeerAddr: fix equality tests and hence lnworker._last_tried_peer

follow-up 13d6997355
This commit is contained in:
SomberNight
2019-11-29 00:53:18 +01:00
parent 2ce8dd460b
commit adaa016e78
2 changed files with 14 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ class LNWorker(Logger):
self.network = network
self.config = network.config
self.channel_db = self.network.channel_db
self._last_tried_peer = {} # LNPeerAddr -> unix timestamp
self._last_tried_peer = {} # type: Dict[LNPeerAddr, float] # LNPeerAddr -> unix timestamp
self._add_peers_from_config()
asyncio.run_coroutine_threadsafe(self.network.main_taskgroup.spawn(self.main_loop()), self.network.asyncio_loop)