Store source/target `node_counter`s in `DirectionalChannelInfo`
authorMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 01:49:20 +0000 (01:49 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 20 Mar 2024 00:51:20 +0000 (00:51 +0000)
commit1f3c5e82a0197a9ba92adedb56f152b2e49cf57c
tree772483c337ae61d735870bf2103d58d896d10062
parente9851ff313e92aa749ba967432c0b8b8d4a5c4bb
Store source/target `node_counter`s in `DirectionalChannelInfo`

Because we now have some slack space in `PathBuildingHop`, we can
use it to cache some additional hot values. Here we use it to
cache the source and target `node_counter`s for public channels,
effectively prefetching the values from the channel state.
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs