commit 8fe70fc0eb6549ad019f1ab865554d672288a329 parent 61983c222ae64073152e7237555e1a3464700640 Author: ThomasV <thomasv@electrum.org> Date: Tue, 26 Jun 2018 13:24:58 +0200 do not set channel state in close_channel; the watcher should do it Diffstat:
M | lib/lnworker.py | | | 7 | +------ |
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/lib/lnworker.py b/lib/lnworker.py @@ -235,9 +235,4 @@ class LNWorker(PrintError): Transaction.add_signature_to_txin(tx._inputs[0], none_idx, bh2u(remote_sig)) tx.raw = None # trigger reserialization assert tx.is_complete() - suc, msg = self.network.broadcast_transaction(tx) - self.channel_state[chan_id] = "CLOSED" - self.on_channels_updated() - if "transaction already in block chain" in msg: - return - assert suc, msg + return self.network.broadcast_transaction(tx)