File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ impl Readable for Route {
363
363
/// [`Event::PaymentPathFailed`] for retrying a failed payment path.
364
364
///
365
365
/// [`Event::PaymentPathFailed`]: crate::util::events::Event::PaymentPathFailed
366
- #[ derive( Clone , Debug ) ]
366
+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
367
367
pub struct RouteParameters {
368
368
/// The parameters of the failed payment path.
369
369
pub payment_params : PaymentParameters ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ use crate::sync::Arc;
46
46
47
47
/// Some information provided on receipt of payment depends on whether the payment received is a
48
48
/// spontaneous payment or a "conventional" lightning payment that's paying an invoice.
49
- #[ derive( Clone , Debug ) ]
49
+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
50
50
pub enum PaymentPurpose {
51
51
/// Information for receiving a payment that we generated an invoice for.
52
52
InvoicePayment {
@@ -455,7 +455,7 @@ impl_writeable_tlv_based_enum!(InterceptNextHop,
455
455
/// Note that while Writeable and Readable are implemented for Event, you probably shouldn't use
456
456
/// them directly as they don't round-trip exactly (for example FundingGenerationReady is never
457
457
/// written as it makes no sense to respond to it after reconnecting to peers).
458
- #[ derive( Clone , Debug ) ]
458
+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
459
459
pub enum Event {
460
460
/// Used to indicate that the client should generate a funding transaction with the given
461
461
/// parameters and then call [`ChannelManager::funding_transaction_generated`].
You can’t perform that action at this time.
0 commit comments