Add find_route test util
authorValentine Wallace <vwallace@protonmail.com>
Sun, 22 Oct 2023 23:05:02 +0000 (18:05 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:59 +0000 (18:38 -0500)
commitfbe4bf1cdd8ffc4d8adc5a84a49bfc9f80e5d67d
treefb50acd2dbffe2e709130abb728b2b3f765338da
parentd99089e16a6e7c4744af5dda0750a7c7a17caba6
Add find_route test util

And use it in the multihop blinded path receive failure test. Will be used in
the next commit to test receiving an invalid blinded final onion payload.

We can't use the existing get_route test util here because blinded payments
rely on the sender adding a random shadow CLTV offset to the final hop; without
this the payment will be failed with cltv-expiry-too-soon.
lightning/src/ln/blinded_payment_tests.rs
lightning/src/ln/functional_test_utils.rs