]> git.bitcoin.ninja Git - rust-lightning/commit
Pass the `peer_state` lock through to `update_maps_on_chan_removal`
authorMatt Corallo <git@bluematt.me>
Sun, 29 Sep 2024 15:22:29 +0000 (15:22 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 5 Nov 2024 20:13:48 +0000 (20:13 +0000)
commit1feb71375c0b0041c78aaa8dce9ef12ab3a6cd3b
treefbfa3d8be2a17647c94ea71ad4c4bfeb871144e6
parent5c975f701ad06ff9439f1e28ed9912f34f69a15d
Pass the `peer_state` lock through to `update_maps_on_chan_removal`

`update_maps_on_chan_removal` is used to perform `ChannelManager`
state updates when a channel is being removed, prior to dropping
the `peer_state` lock. In a future commit we'll use it to update
fields in the `per_peer_state`, but in order to do so we'll need to
have access to that state in the macro.

Here we get set up for this by passing the per-peer state to
`update_maps_on_chan_removal`, which is sadly a fairly large patch.
lightning/src/ln/channelmanager.rs