Merge pull request #2716 from TheBlueMatt/2023-11-hash-if-eq
[rust-lightning] / lightning / src / onion_message / packet.rs
index ba90c717b34181783506f0ab5018fc15ec8093de..37442ab31efadc066ce639c95aee45124d2a309d 100644 (file)
@@ -33,7 +33,7 @@ pub(super) const SMALL_PACKET_HOP_DATA_LEN: usize = 1300;
 pub(super) const BIG_PACKET_HOP_DATA_LEN: usize = 32768;
 
 /// Packet of hop data for next peer
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Clone, Debug, Hash, PartialEq, Eq)]
 pub struct Packet {
        /// Bolt 04 version number
        pub version: u8,