commit 08d20ce187dc89c8d4eefe11f44b5d8e3a897cf1
parent 1b030fca7887e7691211c15f71e9adf0f135e895
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 15 Aug 2018 18:10:15 +0200
lnbase: fix payments
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/lnbase.py b/electrum/lnbase.py
@@ -891,7 +891,6 @@ class Peer(PrintError):
self.revoke(chan)
sig_64, htlc_sigs = chan.sign_next_commitment()
res = failure_coro.result()
- payment_succeeded = True
else:
failure_coro.cancel()
update_fulfill_htlc_msg = fulfill_coro.result()
@@ -903,6 +902,7 @@ class Peer(PrintError):
msat_remote, msat_local)
sig_64 = sign_and_get_sig_string(bare_ctx, chan.local_config, chan.remote_config)
res = bh2u(preimage)
+ payment_succeeded = True
self.send_message(gen_msg("commitment_signed", channel_id=chan.channel_id, signature=sig_64, num_htlcs=0))
await self.receive_revoke(chan)