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>
Sun, 10 Dec 2023 03:50:46 +0000 (03:50 +0000)
commit668bf9b94cf086277a951daedec529425002b047
treefabd4c5e83f45a8f211a604c63e05ca506e7dc40
parentd67385f348bf1dd26a7c21cd8d860dab43572771
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