electrum

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

commit 60508725b6745edb7d1a5f961e5e88285ccfc390
parent 3975560db56262e08d17c97ccd93179220bc0cfe
Author: Janus <ysangkok@gmail.com>
Date:   Thu, 20 Dec 2018 20:26:31 +0100

lnbase: fix sig encoding in mutual close

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

diff --git a/electrum/lnbase.py b/electrum/lnbase.py @@ -1197,8 +1197,8 @@ class Peer(PrintError): our_fee = their_fee # add their signature i = chan.get_local_index() - closing_tx.add_signature_to_txin(0, i, bh2u(our_sig)) - closing_tx.add_signature_to_txin(0, 1-i, bh2u(their_sig)) + closing_tx.add_signature_to_txin(0, i, bh2u(der_sig_from_sig_string(our_sig) + b'\x01')) + closing_tx.add_signature_to_txin(0, 1-i, bh2u(der_sig_from_sig_string(their_sig) + b'\x01')) # broadcast await self.network.broadcast_transaction(closing_tx) return closing_tx.txid()