tlnbase: do not assert only one htlc in commitment - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 578faeb91a7139252c75337c1e65bc5739a8ec3d
DIR parent a5a7c1406e02f899a62a544eaef8e771d2aa472a
HTML Author: Janus <ysangkok@gmail.com>
Date: Wed, 24 Oct 2018 23:58:11 +0200
lnbase: do not assert only one htlc in commitment
Diffstat:
M electrum/lnbase.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/electrum/lnbase.py b/electrum/lnbase.py
t@@ -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)