]> git.bitcoin.ninja Git - rust-lightning/commit
Pass node features through to RouteHops
authorMatt Corallo <git@bluematt.me>
Sat, 28 Dec 2019 06:10:14 +0000 (01:10 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 21 Jan 2020 20:09:12 +0000 (15:09 -0500)
commit912f8774822892d6e371f9a4b1ba7a2553dbb5e7
tree1037aa012e03b1e3a5cb5fb4a788823796988754
parenta19d71d0b2768f2aee747b07be509b6591378e7a
Pass node features through to RouteHops

This exposes the latest Init-context features in the ChannelDetails
passed to the Router during route calculation, which combines those
with the Node-context features tracked from node_announcements to
provide the latest Node-context features in RouteHop structs.

Fields are also added for Channel-context features, though those are
only partially used since no such features are defined today anyway.

These will be useful when determining whether to use new
TLV-formatted onion hop datas when generating onions for peers.
fuzz/src/chanmon_consistency.rs
fuzz/src/router.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/features.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/router.rs