Browse Source

lnbase: do not assert only one htlc in commitment

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
Janus 6 years ago
committed by ThomasV
parent
commit
578faeb91a
  1. 2
      electrum/lnbase.py

2
electrum/lnbase.py

@ -1029,7 +1029,7 @@ class Peer(PrintError):
# add htlc
htlc = {'amount_msat': amount_msat_htlc, 'payment_hash':payment_hash, 'cltv_expiry':cltv_expiry}
chan.receive_htlc(htlc)
assert (await self.receive_commitment(chan)) <= 1
await self.receive_commitment(chan)
self.revoke(chan)
self.send_commitment(chan)
await self.receive_revoke(chan)

Loading…
Cancel
Save