rust-lightning/lightning
Matt Corallo 2e39e08c05 Test for extra locks held in handle_error unconditionally
`handle_error` must be called without `per_peer_state` mutex or
`pending_events` mutex locks held or we may risk deadlocks.
Previously we checked this in debug builds in the error path, but
not in the success path.

As it turns out, `funding_transaction_generated`'s error path does
hold a `per_peer_state` lock, which we fix here as well as move the
tests to happen unconditionally.
2023-04-06 03:25:16 +00:00
..
src Test for extra locks held in handle_error unconditionally 2023-04-06 03:25:16 +00:00
Cargo.toml Introduce MuSig2-related types for Taproot channels. 2023-04-03 13:17:08 -07:00