]> git.bitcoin.ninja Git - rust-lightning/commit
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, 10 Jul 2024 19:38:02 +0000 (19:38 +0000)
commit98f9e8bbf80c5f7d3bb37da92aef0f12d57c075f
tree8f248272158d4ecab326ca5af24e83ead25a7a8c
parent3e902401e0f4e56d30c2b537ca53cf9392cea50c
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