Browse Source

fix: remove unused parameter to add_sweep_tx

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
parent
commit
740381e993
  1. 2
      electrum/lnwatcher.py
  2. 4
      electrum/lnworker.py

2
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())

4
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

Loading…
Cancel
Save