mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-18 21:34:48 +01:00
fd4d3bf3b7
Bolt 12 details the process of picking up route hints from payee using the lightning invoice. This PR brings the changes to use multiple route hints from payee picked from the invoice. The route hints are processed in the following manner:- - `get_route()` receives the hints in `last_hops`. - Every `RouteHintHop` in `RouteHint` is processed based on feasiblity of channel capacity and fees. - If a `RouteHintHop` then preceeding `RouteHintHop`s are not processed. - A direct route is checked from `first_hops_targets` to the first `RouteHintHop` if the respective `RouteHint` is processed from the payee's end till the first `RouteHintHop`. `partial_route_hint_test`, `ignores_empty_last_hops_test`, `multi_hint_last_hops_test` and `last_hops_with_public_channel_test` test usage of partial route hints for building optimal route, processing empty route hint hops, complete usage of private route hints and presence of public channels in route hints respectively. Resolves: #945
11 lines
167 B
Plaintext
11 lines
167 B
Plaintext
/target/
|
|
c-bindings-gen/target/
|
|
lightning-c-bindings/target/
|
|
lightning-c-bindings/a.out
|
|
/hfuzz_target/
|
|
/net-tokio/target/
|
|
**/*.rs.bk
|
|
Cargo.lock
|
|
.idea
|
|
lightning/target
|