Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information