tln: enable receiving dust htlcs - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cc48e146180864ece525bc6d19574cf2e4666788 DIR parent 18627ecd1ab50c2b6d046b33bb98612f59cd3826 HTML Author: Janus <ysangkok@gmail.com> Date: Tue, 10 Jul 2018 16:28:52 +0200 ln: enable receiving dust htlcs Diffstat: M lib/lnbase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/lnbase.py b/lib/lnbase.py t@@ -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)