X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fevents.rs;h=475533c902a372fdb0bea1b86cb0e754dc90fbe4;hb=6b49af1563ffdd2533900059922bd655c1f90a8d;hp=432a532d68ca58dc68fe511b99eca9af7c1da81e;hpb=95892e37daeda1fd8e89b3e97e6e4e5cdba99d52;p=rust-lightning diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 432a532d..475533c9 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -46,7 +46,7 @@ use crate::sync::Arc; /// Some information provided on receipt of payment depends on whether the payment received is a /// spontaneous payment or a "conventional" lightning payment that's paying an invoice. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq)] pub enum PaymentPurpose { /// Information for receiving a payment that we generated an invoice for. InvoicePayment { @@ -455,7 +455,7 @@ impl_writeable_tlv_based_enum!(InterceptNextHop, /// Note that while Writeable and Readable are implemented for Event, you probably shouldn't use /// them directly as they don't round-trip exactly (for example FundingGenerationReady is never /// written as it makes no sense to respond to it after reconnecting to peers). -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq)] pub enum Event { /// Used to indicate that the client should generate a funding transaction with the given /// parameters and then call [`ChannelManager::funding_transaction_generated`].