lnworker: return txid from force_close_channel as expected

This commit is contained in:
Janus 2019-01-24 17:57:27 +01:00 committed by ThomasV
parent 38396e8ed4
commit bd45f3f1c8

View file

@ -650,7 +650,8 @@ class LNWorker(PrintError):
chan.set_state('FORCE_CLOSING')
self.save_channel(chan)
self.on_channels_updated()
return await self.network.broadcast_transaction(tx)
await self.network.broadcast_transaction(tx)
return tx.txid()
def _get_next_peers_to_try(self) -> Sequence[LNPeerAddr]:
now = time.time()