]> git.bitcoin.ninja Git - rust-lightning/commit
Accept multi-hop route hints in get_route
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 10 Jun 2021 22:49:14 +0000 (15:49 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 11 Jun 2021 15:44:32 +0000 (08:44 -0700)
commit200f3d155ce883bbc787fa35933448e4df8cf132
tree422aac770be56e2e2cd8a7dc9263bb0ec81a4b94
parentc9d1ed5c14fc465ce702f44870aae99945675b3d
Accept multi-hop route hints in get_route

Lightning invoices allow for zero or more multi-hop route hints. Update
get_route's interface to accept such hints, although only the last hop
from each is used for the time being.

Moves RouteHint from lightning-invoice crate to lightning crate. Adds a
PrivateRoute wrapper around RouteHint for use in lightning-invoice.
fuzz/src/router.rs
lightning-invoice/src/de.rs
lightning-invoice/src/lib.rs
lightning-invoice/src/ser.rs
lightning-invoice/src/utils.rs
lightning/src/routing/router.rs