mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-05 14:01:39 +00:00
fix: remove unused parameter to add_sweep_tx
This commit is contained in:
parent
fa3eefa479
commit
740381e993
2 changed files with 3 additions and 3 deletions
|
@ -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())
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue