mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-22 15:24:21 +01:00
features: renumber from 102/103 to 38/39.
100+ is for experimentation, modern spec practice is to assign feature bits sequentially as PRs get added, to avoid later renumbering. Still respect the old bit for now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -516,7 +516,9 @@ static bool can_carry_onionmsg(const struct gossmap *map,
|
||||
|
||||
/* Check features of recipient */
|
||||
n = gossmap_nth_node(map, c, !dir);
|
||||
return n && gossmap_node_get_feature(map, n, OPT_ONION_MESSAGES) != -1;
|
||||
/* 102/103 was the old EXPERIMENTAL feature bit: remove soon! */
|
||||
return gossmap_node_get_feature(map, n, OPT_ONION_MESSAGES) != -1
|
||||
|| gossmap_node_get_feature(map, n, 102) != -1;
|
||||
}
|
||||
|
||||
/* Create path to node which can carry onion messages; if it can't find
|
||||
|
||||
Reference in New Issue
Block a user