]> git.bitcoin.ninja Git - rust-lightning/commit
Make lockorder consistent in channelmanager
authorMatt Corallo <git@bluematt.me>
Wed, 12 Jan 2022 19:58:08 +0000 (19:58 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 14 Jan 2022 15:38:18 +0000 (15:38 +0000)
commitbf99544c6e10a63800191ad62e542962d49095b3
treea8e1f2a851504741e91bb271e4714fa4b71da5d0
parentcfbbc7542a0d727a7eabddbb401d890e81b9281f
Make lockorder consistent in channelmanager

This resolves a lockorder inversion in
`ChannelManager::finalize_claims` where `pending_outbound_payments`
is locked after `pending_events`, opposite of, for example, the
lockorder in `ChannelManager::fail_htlc_backwards_internal` where
`pending_outbound_payments` is locked at the top of the
`HTLCSource::OutboundRoute` handling and then `pending_events` is
locked at the end.
lightning/src/ln/channelmanager.rs