Avoid holding a `per_peer_state` lock while claiming from a monitor 2023-04-less-lock
authorMatt Corallo <git@bluematt.me>
Sat, 1 Apr 2023 19:22:22 +0000 (19:22 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 6 Apr 2023 18:10:06 +0000 (18:10 +0000)
commitb189df579f5c6f62e0d54976f39db7c3514f0071
tree61f2d1fa8fbdc14eb670673cdc26d5dc627b3877
parentba1349982ba28657c9e2d03a5b02c3ecc054b5cc
Avoid holding a `per_peer_state` lock while claiming from a monitor

There's no reason to hold a lock on `per_peer_state` while we're
claiming from a since-closed channel via a `ChannelMonitorUpdate`,
which we stop doing here.
lightning/src/ln/channelmanager.rs