]> git.bitcoin.ninja Git - rust-lightning/commit
Correct lock drop'ing in `ChainMonitor::update_channel`
authorMatt Corallo <git@bluematt.me>
Sat, 2 Dec 2023 17:54:18 +0000 (17:54 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 3 Dec 2023 20:06:18 +0000 (20:06 +0000)
commit18a18d89627f95f42a46ce3e247348c45c8f0717
tree1d55bb9cc38d256ad1418bdf52a318465b6158a3
parentab93d35da26a524b812408c3384ac2f60eaadf27
Correct lock drop'ing in `ChainMonitor::update_channel`

e21a500668179c7084e2df5cb75019810eb03cbe cleaned up the error
handling in `ChainMonitor::update_channel` a bit, but accidentally
replaced the deliberate panic with a hang. This commit ensures we
properly drop the monitors read lock before taking a write lock.
lightning/src/chain/chainmonitor.rs