Pass PaymentContext through HTLC processing
[rust-lightning] / lightning / src / blinded_path / payment.rs
index b722a4419190aa3f3cf0f6fa8ca6c5126fae094c..39f7c7f11088c51bdb5a55393084274d96631820 100644 (file)
@@ -104,14 +104,14 @@ pub struct PaymentConstraints {
 ///
 /// [`BlindedPath`]: crate::blinded_path::BlindedPath
 /// [`PaymentPurpose`]: crate::events::PaymentPurpose
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Eq, PartialEq)]
 pub enum PaymentContext {
        /// The payment context was unknown.
        Unknown(UnknownPaymentContext),
 }
 
 /// An unknown payment context.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Eq, PartialEq)]
 pub struct UnknownPaymentContext(());
 
 impl PaymentContext {