Add an `inbound` flag to the `peer_connected` message handlers
[rust-lightning] / lightning / src / routing / scoring.rs
index f16dd2d5b401e521c7299cfa3e2b647cb9d105ab..7504e0840d2683125cf75144fd445b070c6f08da 100644 (file)
@@ -260,7 +260,7 @@ impl<'a, S: Writeable> Writeable for MutexGuard<'a, S> {
 }
 
 /// Proposed use of a channel passed as a parameter to [`Score::channel_penalty_msat`].
-#[derive(Clone, Copy, Debug)]
+#[derive(Clone, Copy, Debug, PartialEq)]
 pub struct ChannelUsage {
        /// The amount to send through the channel, denominated in millisatoshis.
        pub amount_msat: u64,