]> git.bitcoin.ninja Git - rust-lightning/commit
Allow building of a route from given hops
authorElias Rohrer <ero@tnull.de>
Wed, 25 May 2022 23:44:22 +0000 (16:44 -0700)
committerElias Rohrer <ero@tnull.de>
Fri, 27 May 2022 00:29:33 +0000 (17:29 -0700)
commit2010670ac153ee1aeb4ccc40ee64a8b86ed54397
treeed20b7210c48429d038a90e906dd2475afe4a849
parentaac39076d54f43344630180c7a83b9f8a7bf0102
Allow building of a route from given hops

Implements `build_route_from_hops`, which provides a simple way to build
a route from us (payer) to the target node (payee) via the given hops
(which should exclude the payer, but include the payee). This may be
useful, e.g., for probing the chosen path.
lightning/src/routing/router.rs