Browse Source

follow-up previous commit: broadcast_transaction does not return txid

hard-fail-on-bad-server-string
ThomasV 5 years ago
parent
commit
b609088115
  1. 4
      electrum/lnworker.py

4
electrum/lnworker.py

@ -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…
Cancel
Save