Probe up to second-to-last hop if last was provided by route hint
authorElias Rohrer <dev@tnull.de>
Mon, 11 Sep 2023 11:50:10 +0000 (13:50 +0200)
committerElias Rohrer <dev@tnull.de>
Mon, 18 Sep 2023 13:08:27 +0000 (15:08 +0200)
commit30e47ca56cd7ab2ed46a79bd5b0567e79a7d7941
tree5104e7e40fe2377b534952e6e69f89178dad4ad0
parentcdb87722027fed31ef2207ef7376e64196290201
Probe up to second-to-last hop if last was provided by route hint

If the last hop was provided by route hint we assume it's not an announced channel.
If furthermore only a single route hint is provided we refrain from probing through
all the way to the end and instead probe up to the second-to-last channel.

Optimally we'd do this not based on above mentioned assumption but
rather by checking inclusion in our network graph. However, we don't
have access to our graph in `ChannelManager`.
lightning/src/ln/channelmanager.rs