Store the source and destination `node_counter`s in `ChannelInfo`
authorMatt Corallo <git@bluematt.me>
Thu, 7 Dec 2023 04:32:06 +0000 (04:32 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 10 Dec 2023 03:29:38 +0000 (03:29 +0000)
commit27fd46c940b9046273d98d7f47f9e705e2ab5c08
tree3f2148647fc0486cd99e2cb7e86ad4704afd6f9b
parent8b79e61abdbd3a3b80fc2ff6e3dad2967721db76
Store the source and destination `node_counter`s in `ChannelInfo`

In the next commit, we'll use the new `node_counter`s to remove a
`HashMap` from the router, using a `Vec` to store all our per-node
information. In order to make finding entries in that `Vec` cheap,
here we store the source and destintaion `node_counter`s in
`ChannelInfo`, givind us the counters for both ends of a channel
without doing a second `HashMap` lookup.
lightning/src/routing/gossip.rs