electrum

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

commit f8dc9b344a134b0181487362c5bbbb6ff061bf08
parent 6b6097a4534cf4cb40229adc40576a2375d1c812
Author: Janus <ysangkok@gmail.com>
Date:   Fri, 25 Jan 2019 01:19:52 +0100

lnbase: work around peer not sending funding_locked so channel doesn't get marked open

Diffstat:
Melectrum/lnbase.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/electrum/lnbase.py b/electrum/lnbase.py @@ -722,6 +722,10 @@ class Peer(PrintError): self.send_message("funding_locked", channel_id=channel_id, next_per_commitment_point=per_commitment_point_second) if chan.config[LOCAL].funding_locked_received: self.mark_open(chan) + else: + self.print_error("remote hasn't sent funding_locked, disconnecting (should reconnect again shortly)") + self.close_and_cleanup() + self.network.trigger_callback('channel', chan) def on_funding_locked(self, payload): channel_id = payload['channel_id']