From f060e53912cdbf58d0a0dbb186cd8a82d0d3068b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 27 Jul 2019 01:23:27 +0200 Subject: [PATCH] (trivial) fix type annotation --- electrum/lnchannel.py | 2 +- electrum/lnpeer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py index ebe05d0b5..387620b61 100644 --- a/electrum/lnchannel.py +++ b/electrum/lnchannel.py @@ -707,7 +707,7 @@ class Channel(Logger): return int(self.config[LOCAL].multisig_key.pubkey > self.config[REMOTE].multisig_key.pubkey) def make_closing_tx(self, local_script: bytes, remote_script: bytes, - fee_sat: int) -> Tuple[bytes, int, str]: + fee_sat: int) -> Tuple[bytes, Transaction]: """ cooperative close """ _, outputs = make_commitment_outputs({ LOCAL: fee_sat * 1000 if self.constraints.is_initiator else 0, diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index ac0715fe9..247245934 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -1359,7 +1359,7 @@ class Peer(Logger): their_sig = cs_payload['signature'] if our_fee == their_fee: break - # TODO: negociate better + # TODO: negotiate better our_fee = their_fee # index of our_sig i = chan.get_local_index()