mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 03:03:51 +01:00
pay: still use channels for routehints even if peer says it's disabled.
We have a report that LND said our (unannounced) channel was disabled, so we didn't use it for routehints. We're better off ignoring that in this case (if the peer is actually not connected, the routehint code will check that and ignore anyway). Fixes: #6555 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: pay: use channels in routehints even if peer says they're "disabled" (LND compat)
This commit is contained in:
parent
be082cdff4
commit
af6b535efd
1 changed files with 5 additions and 3 deletions
|
@ -566,10 +566,12 @@ static struct command_result *json_listincoming(struct command *cmd,
|
||||||
const u8 *peer_features;
|
const u8 *peer_features;
|
||||||
|
|
||||||
ourchan = gossmap_nth_chan(gossmap, me, i, &dir);
|
ourchan = gossmap_nth_chan(gossmap, me, i, &dir);
|
||||||
/* If its half is disabled, ignore. */
|
/* Entirely missing? Ignore. */
|
||||||
if (!ourchan->half[!dir].enabled)
|
if (ourchan->cupdate_off[!dir] == 0)
|
||||||
continue;
|
continue;
|
||||||
|
/* We used to ignore if the peer said it was disabled,
|
||||||
|
* but we have a report of LND telling us our unannounced
|
||||||
|
* channel is disabled, so we still use them. */
|
||||||
peer = gossmap_nth_node(gossmap, ourchan, !dir);
|
peer = gossmap_nth_node(gossmap, ourchan, !dir);
|
||||||
scid = gossmap_chan_scid(gossmap, ourchan);
|
scid = gossmap_chan_scid(gossmap, ourchan);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue