Add test coverage for serialization of malformed HTLCs.
[rust-lightning] / lightning / src / ln / msgs.rs
index db7579039cce848aafdeb90941a12d29d37a6222..6c4a324a906c7a09051d35b6a286246ee3272a16 100644 (file)
@@ -1678,6 +1678,7 @@ mod fuzzy_internal_msgs {
        // These types aren't intended to be pub, but are exposed for direct fuzzing (as we deserialize
        // them from untrusted input):
        #[derive(Clone)]
+       #[cfg_attr(test, derive(Debug, PartialEq))]
        pub struct FinalOnionHopData {
                pub payment_secret: PaymentSecret,
                /// The total value, in msat, of the payment as received by the ultimate recipient.