]> git.bitcoin.ninja Git - rust-lightning/commit
Don't hold `per_peer_state` lock during chain monitor update
authorViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Mon, 7 Nov 2022 00:11:44 +0000 (01:11 +0100)
committerViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Mon, 21 Nov 2022 20:49:21 +0000 (21:49 +0100)
commit782eb3658fbc53ceb9c64847692061f2198cb786
treeacdd673cb8bd783907ca5bb9fd7bd04126cf5abf
parent6b12117782a06f759152741b9bf54802b50c7e58
Don't hold `per_peer_state` lock during chain monitor update

For Windows build only, the
`TestPersister::chain_sync_monitor_persistences` lock has a lock order
before the `ChannelManager::per_peer_state` lock. This fix ensures that
the `per_peer_state` lock isn't held before the
`TestPersister::chain_sync_monitor_persistences` lock is acquired.
lightning/src/ln/channelmanager.rs