electrum

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

commit 578faeb91a7139252c75337c1e65bc5739a8ec3d
parent a5a7c1406e02f899a62a544eaef8e771d2aa472a
Author: Janus <ysangkok@gmail.com>
Date:   Wed, 24 Oct 2018 23:58:11 +0200

lnbase: do not assert only one htlc in commitment

Diffstat:
Melectrum/lnbase.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/lnbase.py b/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)