1
0

ln: begin handling htlc failures

This commit is contained in:
Janus
2018-06-18 19:46:25 +02:00
committed by ThomasV
parent 6d8cae11dd
commit e9fec66eb4
4 changed files with 59 additions and 4 deletions

View File

@@ -193,6 +193,8 @@ class LNWorker(PrintError):
for chan in self.channels.values():
if chan.short_channel_id == short_channel_id:
break
else:
raise Exception("ChannelDB returned path with short_channel_id that is not in channel list")
coro = peer.pay(path, chan, amount_msat, payment_hash, invoice_pubkey, addr.min_final_cltv_expiry)
return asyncio.run_coroutine_threadsafe(coro, self.network.asyncio_loop)