electrum

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

commit 9b97469598c040f5ec6a0c8fc7d59888d47b3b02
parent 6833adf8b6fb8a48babc4c503d23e740d9b586f4
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 26 Feb 2020 15:49:55 +0100

(minor) follow-up previous commit

Diffstat:
Melectrum/lnpeer.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py @@ -1416,11 +1416,11 @@ class Peer(Logger): their_sig = cs_payload['signature'] # verify their sig: they might have dropped their output our_sig, closing_tx = chan.make_closing_tx(our_scriptpubkey, their_scriptpubkey, fee_sat=their_fee, drop_remote=False) - if not verify_signature(closing_tx, their_sig): + if verify_signature(closing_tx, their_sig): drop_remote = False else: our_sig, closing_tx = chan.make_closing_tx(our_scriptpubkey, their_scriptpubkey, fee_sat=their_fee, drop_remote=True) - if not verify_signature(closing_tx, their_sig): + if verify_signature(closing_tx, their_sig): drop_remote = True else: raise Exception('failed to verify their signature')