]> git.bitcoin.ninja Git - rust-lightning/commit
Unify route finding methods
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 25 Oct 2021 23:48:52 +0000 (18:48 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 27 Oct 2021 01:15:19 +0000 (20:15 -0500)
commit2d102a3065d7a438d5c88fffcad36545a0822bfa
treeb87de9c5334f6fa72ff538fc093426b41a52e398
parent5feb4dc9c4aea77be83427c66f7ec93551753d26
Unify route finding methods

An upcoming Router interface will be used for finding a Route both when
initially sending a payment and also when retrying failed payment paths.
Unify the three varieties of get_route so the interface can consist of a
single method implemented by the new `find_route` method. Give get_route
pub(crate) visibility so it can still be used in tests.
fuzz/src/full_stack.rs
fuzz/src/router.rs
lightning-invoice/src/utils.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/features.rs
lightning/src/ln/functional_tests.rs
lightning/src/routing/router.rs
lightning/src/routing/scorer.rs
lightning/src/util/events.rs