electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 2a112b867b48427e5561e1d94ac9c7a85051fcb7
parent b5482e4470dcf2da331bf33b65c8a37ba009aa57
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  1 Feb 2019 20:40:22 +0100

follow-up previous commit

Diffstat:
Melectrum/lnworker.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/electrum/lnworker.py b/electrum/lnworker.py @@ -249,7 +249,10 @@ class LNWorker(PrintError): port = int(port) peer_addr = LNPeerAddr(host, port, node_id) transport = LNTransport(self.node_keypair.privkey, peer_addr) - await transport.handshake() + try: + await transport.handshake() + except: + return self.channel_db.add_recent_peer(peer_addr) self._last_tried_peer[peer_addr] = time.time() self.print_error("adding peer", peer_addr)