]> git.bitcoin.ninja Git - rust-lightning/commit
Remove `forward_htlc` after `channel_state` lock order
authorViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Mon, 5 Sep 2022 20:16:32 +0000 (22:16 +0200)
committerViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Sun, 18 Sep 2022 21:13:56 +0000 (23:13 +0200)
commit3379f8c4927ce970aeadac935da0204ba4cb40ae
treee9b83d9c3cdb5065ebe0c104e712e761323a90f9
parente8854a9ce26112705c308060b3485b69f894666e
Remove `forward_htlc` after `channel_state` lock order

The `forward_htlc` was prior to this commit only held at the same time
as the `channel_state` lock during the write process of the
`ChannelManager`. This commit removes the lock order dependency, by
taking the `channel_state`lock temporarily during the write process.
lightning/src/ln/channelmanager.rs