pay: Populate the channel hints with either the scid or the alias

We'll use one of the two, and we reuse the `scid` field, since we
don't really care that much which one it is.
This commit is contained in:
Christian Decker
2022-05-04 15:52:43 +02:00
parent 0ce68b26c6
commit 7930e34da3
2 changed files with 21 additions and 4 deletions

View File

@@ -60,6 +60,11 @@ struct payment_result {
* get remove on failure. Success keeps the capacities, since the capacities
* changed due to the successful HTLCs. */
struct channel_hint {
/* The short_channel_id we're going to use when referring to
* this channel. This can either be the real scid, or the
* local alias. The `pay` algorithm doesn't really care which
* one it is, but we'll prefer the scid as that's likely more
* readable than the alias. */
struct short_channel_id_dir scid;
/* Upper bound on remove channels inferred from payment failures. */