]> git.bitcoin.ninja Git - rust-lightning/commit
Have TestRouter wrap DefaultRouter
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 14 Dec 2023 16:25:10 +0000 (10:25 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Jan 2024 17:12:34 +0000 (11:12 -0600)
commitb5783632482164dc53e9fb50ea52b66adf330001
tree9d5029c9d8e9bbc1b2933d3647fbb19ccd572417
parent3b6d039f89b75758dda7c5aeedce5e79bbc0d5fa
Have TestRouter wrap DefaultRouter

TestRouter checks route and scoring expectations before delegating to
the standalone find_route function. Refactor it to wrap DefaultRouter
and delegate to it instead. This allows TestRouter to implement
create_blinded_payment_paths by delegating to DefaultRouter.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/outbound_payment.rs
lightning/src/util/test_utils.rs