Move `forward_htlcs` into standalone lock
authorViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Mon, 8 Aug 2022 19:10:33 +0000 (21:10 +0200)
committerViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Sun, 18 Sep 2022 21:13:56 +0000 (23:13 +0200)
commitdf12df354ebdb5d5f747463e3b87b2d6b8d04194
treed44110707f7e52a17cba6c2c08b2f738a461603b
parent8886d1dc76ce7bd815634c738d114e7d3572c4fe
Move `forward_htlcs` into standalone lock

As we are eventually removing the `channel_state` lock, this commit
moves the `forward_htlcs` map out of the `channel_state` lock, to ease
that process.
lightning/src/ln/channelmanager.rs
lightning/src/ln/onion_route_tests.rs