X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fblinded_path%2Fpayment.rs;h=39f7c7f11088c51bdb5a55393084274d96631820;hb=9be364f60ea1ed348a94ea93e9e4d90394a4c1cb;hp=b722a4419190aa3f3cf0f6fa8ca6c5126fae094c;hpb=c8815384787e6b0837a51944555357623d4ffa4e;p=rust-lightning diff --git a/lightning/src/blinded_path/payment.rs b/lightning/src/blinded_path/payment.rs index b722a441..39f7c7f1 100644 --- a/lightning/src/blinded_path/payment.rs +++ b/lightning/src/blinded_path/payment.rs @@ -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 {