mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 10:15:20 +00:00
follow-up previous commit: broadcast_transaction does not return txid
This commit is contained in:
parent
888a6d726e
commit
b609088115
1 changed files with 2 additions and 2 deletions
|
@ -1300,9 +1300,9 @@ class LNWallet(LNWorker):
|
||||||
# returns txid or raises
|
# returns txid or raises
|
||||||
chan = self.channels[chan_id]
|
chan = self.channels[chan_id]
|
||||||
tx = chan.force_close_tx()
|
tx = chan.force_close_tx()
|
||||||
txid = await self.network.broadcast_transaction(tx)
|
await self.network.broadcast_transaction(tx)
|
||||||
chan.set_state(channel_states.FORCE_CLOSING)
|
chan.set_state(channel_states.FORCE_CLOSING)
|
||||||
return txid
|
return tx.txid()
|
||||||
|
|
||||||
async def try_force_closing(self, chan_id):
|
async def try_force_closing(self, chan_id):
|
||||||
# fails silently but sets the state, so that we will retry later
|
# fails silently but sets the state, so that we will retry later
|
||||||
|
|
Loading…
Add table
Reference in a new issue