]> git.bitcoin.ninja Git - rust-lightning/commit
Make `CandidateRouteHop::PrivateHop::target_node_id` a reference
authorMatt Corallo <git@bluematt.me>
Wed, 6 Dec 2023 03:54:28 +0000 (03:54 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 20:45:06 +0000 (20:45 +0000)
commitd0084c22d4d85b95ddf468953543e38e42c00fe0
tree032962c7554079deacddcfe1753bba0956f6151a
parent2b7d097dc76805a814eef93b4610a9eebc68e20e
Make `CandidateRouteHop::PrivateHop::target_node_id` a reference

This avoids bloating `CandidateRouteHop` with a full 33-byte
node_id (and avoids repeated public key serialization when we do
multiple pathfinding passes).
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs