Files
lightning/lightningd
Carl Dong 42e038b9ad lightningd: Look for channels by alias when finding channels
When a channel is not yet confirmed onchain and only has an alias,
`getroute` will return the alias under the "channel" key. However, if
you supply that to `sendpay`, it will not be able to find the channel
and will fail since it calls `find_channel_for_htlc_add` and that only
looks for channels by their scid and doesn't consider their alias.

This patch makes `find_channel_for_htlc_add` also consider channel
aliases when looking for channels.

Changelog-Fixed: JSON-RPC: `sendpay` now can send to a short-channel-id alias for the first hop.
2023-01-03 15:30:23 +10:30
..
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-12-13 08:28:12 +10:30
2022-03-10 09:40:09 +10:30
2022-09-19 10:18:55 +09:30
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00