electrum

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

commit 740381e993c76466f1ee5d25b6d4e0fdcfad391f
parent fa3eefa479c6b5a8dab6153a55a3c761f9f67fc3
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 28 Jul 2019 21:05:00 +0200

fix: remove unused parameter to add_sweep_tx

Diffstat:
Melectrum/lnwatcher.py | 2+-
Melectrum/lnworker.py | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -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