Move `CandidateRouteHop` enum variant fields into structs
authorMatt Corallo <git@bluematt.me>
Tue, 19 Dec 2023 18:21:21 +0000 (18:21 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 21 Dec 2023 05:21:56 +0000 (05:21 +0000)
commitcfafdce2859b8e80541c56f9cd2b3abddbcc479f
tree3ba02ad620abe5f555ebfea1e6c057c30482fff5
parent15b7f667b05b09a25af8ab2791ea4f0752fcc2ab
Move `CandidateRouteHop` enum variant fields into structs

The bindings generator struggles a bit with the references in enum
variant fields in `CandidateRouteHop`. While we could probably fix
this, its much eaiser (and less risky) to inline the enum variant
fields from `CandidateRouteHop` into structs. This also lets us
make some of the fields non-public, which seems better at least for
the opaque `hint_idx` in the blinded paths.
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/test_utils.rs