Rename `CandidateRouteHop::FirstHop::node_id` and make it a ref
authorMatt Corallo <git@bluematt.me>
Wed, 6 Dec 2023 01:22:21 +0000 (01:22 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 20:45:06 +0000 (20:45 +0000)
commitcc4bc1df5a1ab6c363fac3c1b7eddce362e167c0
treed4687968fddd7329d87e2e4cba44b1895d9d058b
parent57857fd52045abe0988d2d3efe55341be2fe33d5
Rename `CandidateRouteHop::FirstHop::node_id` and make it a ref

Rather than calling `CandidateRouteHop::FirstHop::node_id` just
`node_id`, we should call it `payer_node_id` to provide more
context.

We also take this opportunity to make it a reference, avoiding
bloating `CandidateRouteHop`.
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs