]> git.bitcoin.ninja Git - rust-lightning/commit
Consider `channel_id`s in `short_to_chan_info` as unguaranteed
authorViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Thu, 18 Aug 2022 22:54:47 +0000 (00:54 +0200)
committerViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Fri, 4 Nov 2022 19:26:47 +0000 (20:26 +0100)
commitec9db029eabb18d5b676eaf1e4a2d2650b69fed0
tree5b8fab172e6b577256f6f0e032e1dc7dde00ea4c
parent3fa10c801b2029147cb3f347027a2c2e3bc153ad
Consider `channel_id`s in `short_to_chan_info` as unguaranteed

As the `short_to_chan_info` map has been removed from the
`channel_state`, there is no longer any consistency guarantees between
the `by_id` and `short_to_chan_info` maps. This commit ensures that we
don't force unwrap channels where the channel_id has been queried from
the `short_to_chan_info` map.
lightning/src/ln/channelmanager.rs