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>
Thu, 21 Dec 2023 06:00:02 +0000 (06:00 +0000)
commite1ea4c65e9a721b2c35ab3d701f11f647745e319
tree7768d39cb262b6a88188d0ef160832dd56fb37c9
parent5c6d126418590de66925addf0b1f2c1f8235fbbd
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