Pass `InFlightHltcs` to the scorer by ownership rather than ref
authorMatt Corallo <git@bluematt.me>
Tue, 18 Jul 2023 19:41:07 +0000 (19:41 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Jul 2023 19:49:43 +0000 (19:49 +0000)
commitd2c20ecc2d2eec46b5f1d29173bc9e29cd5179a0
treef11b1f480d758eaefa1667968a524042316883ff
parent0c629ff60a0f47757e0faab7e0508ed9aae057f5
Pass `InFlightHltcs` to the scorer by ownership rather than ref

Given we build `InFlightHtlcs` per route-fetch call, there's no
reason to pass them out by reference rather than simply giving the
user the full object. This also allows them to tweak the in-flight
set before fetching a route.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs