]> 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>
Wed, 12 Jan 2022 21:17:49 +0000 (21:17 +0000)
commit6ccd07bc2d6213061b2ae579ccad9cfef4bc02cd
treef66e78019692910f6ed9978a5f0add261b94f454
parenta82067d3595a782d656f18d544145b547e27abc4
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