From 740381e993c76466f1ee5d25b6d4e0fdcfad391f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 28 Jul 2019 21:05:00 +0200 Subject: [PATCH] fix: remove unused parameter to add_sweep_tx --- electrum/lnwatcher.py | 2 +- electrum/lnworker.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py index 8c155e717..6012d0cc4 100644 --- a/electrum/lnwatcher.py +++ b/electrum/lnwatcher.py @@ -292,7 +292,7 @@ class WatchTower(LNWatcher): return await self.sweepstore.get_num_tx(outpoint) return self.network.run_from_another_thread(f()) - def add_sweep_tx(self, funding_outpoint: str, address:str, ctn:int, prevout: str, tx: str): + def add_sweep_tx(self, funding_outpoint: str, ctn:int, prevout: str, tx: str): async def f(): return await self.sweepstore.add_sweep_tx(funding_outpoint, ctn, prevout, tx) return self.network.run_from_another_thread(f()) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index c77dc56d8..e52471785 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -358,9 +358,9 @@ class LNWallet(LNWorker): self.logger.info(f'sync with watchtower: {outpoint}, {ctn}, {len(sweeptxs)}') for tx in sweeptxs: if is_local: - await watchtower.add_sweep_tx(outpoint, addr, ctn, tx.prevout(0), str(tx)) + await watchtower.add_sweep_tx(outpoint, ctn, tx.prevout(0), str(tx)) else: - watchtower.add_sweep_tx(outpoint, addr, ctn, tx.prevout(0), str(tx)) + watchtower.add_sweep_tx(outpoint, ctn, tx.prevout(0), str(tx)) def start_network(self, network: 'Network'): self.config = network.config