We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c0b28 commit ebeb5a4Copy full SHA for ebeb5a4
lightning/src/chain/channelmonitor.rs
@@ -968,10 +968,6 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
968
/// For lockorder enforcement purposes, we need to have a single site which constructs the
969
/// `inner` mutex, otherwise cases where we lock two monitors at the same time (eg in our
970
/// PartialEq implementation) we may decide a lockorder violation has occurred.
971
- ///
972
- /// Note that this approach may be somewhat brittle - if this method gets inlined inner mutexes
973
- /// may be considered separate again. In that case we may need to move from considering locks
974
- /// by the instruction pointer to considering locks by the symbol module and line number.
975
fn construct_monitor(imp: ChannelMonitorImpl<Signer>) -> Self {
976
ChannelMonitor { inner: Mutex::new(imp) }
977
}
0 commit comments