electrum

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

commit cc48e146180864ece525bc6d19574cf2e4666788
parent 18627ecd1ab50c2b6d046b33bb98612f59cd3826
Author: Janus <ysangkok@gmail.com>
Date:   Tue, 10 Jul 2018 16:28:52 +0200

ln: enable receiving dust htlcs

Diffstat:
Mlib/lnbase.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/lnbase.py b/lib/lnbase.py @@ -936,13 +936,13 @@ class Peer(PrintError): chan.receive_htlc(htlc) - assert (await self.receive_commitment(chan)) == 1 + assert (await self.receive_commitment(chan)) <= 1 self.revoke(chan) sig_64, htlc_sigs = chan.sign_next_commitment() - htlc_sig = htlc_sigs[0] - self.send_message(gen_msg("commitment_signed", channel_id=channel_id, signature=sig_64, num_htlcs=1, htlc_signature=htlc_sig)) + htlc_sig = b''.join(htlc_sigs) + self.send_message(gen_msg("commitment_signed", channel_id=channel_id, signature=sig_64, num_htlcs=len(htlc_sigs), htlc_signature=htlc_sig)) await self.receive_revoke(chan)