Merge pull request #2329 from dunxen/2023-05-initgenesischeck
[rust-lightning] / lightning-invoice / src / payment.rs
index c08a00a0ca23ec18f31fcfbbe1afca9aff6ba57e..7abfbe4bfc4e7201d03bcdabafcd023d28f7cb3a 100644 (file)
@@ -169,7 +169,7 @@ fn expiry_time_from_unix_epoch(invoice: &Invoice) -> Duration {
 }
 
 /// An error that may occur when making a payment.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq)]
 pub enum PaymentError {
        /// An error resulting from the provided [`Invoice`] or payment hash.
        Invoice(&'static str),