Browse Source

ln: enable receiving dust htlcs

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
Janus 7 years ago
committed by ThomasV
parent
commit
cc48e14618
  1. 6
      lib/lnbase.py

6
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)

Loading…
Cancel
Save