Move `CandidateRouteHop` enum variant fields into structs 2023-12-no-pub-enum
authorMatt Corallo <git@bluematt.me>
Tue, 19 Dec 2023 18:21:21 +0000 (18:21 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 2 Jan 2024 03:49:06 +0000 (03:49 +0000)
commit3c28767cebce455913876079c5ca13ad6c644d75
treec53f826a932cd66941bc2465903d9ca65c4c920f
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