From f8da0f87a7dd69e8f538469d9e8ff9dae36d5f8e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 16 Feb 2020 14:45:04 +0100 Subject: [PATCH] follow-up previous commit --- electrum/lnwatcher.py | 1 + electrum/lnworker.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py index cf2cb10b3..1b8ab9dab 100644 --- a/electrum/lnwatcher.py +++ b/electrum/lnwatcher.py @@ -22,6 +22,7 @@ from .transaction import Transaction if TYPE_CHECKING: from .network import Network + from .lnsweep import SweepInfo class ListenerItem(NamedTuple): # this is triggered when the lnwatcher is all done with the outpoint used as index in LNWatcher.tx_progress diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 071aed9c1..67e806caa 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -66,7 +66,6 @@ from .lnwatcher import LNWalletWatcher if TYPE_CHECKING: from .network import Network from .wallet import Abstract_Wallet - from .lnsweep import SweepInfo NUM_PEERS_TARGET = 4 @@ -677,8 +676,7 @@ class LNWallet(LNWorker): if peer is None: self.logger.info("peer not found for {}".format(bh2u(chan.node_id))) return - if event == 'fee': - await peer.bitcoin_fee_update(chan) + await peer.bitcoin_fee_update(chan) conf = self.lnwatcher.get_tx_height(chan.funding_outpoint.txid).conf peer.on_network_update(chan, conf)