Merge pull request #3035 from TheBlueMatt/2024-04-upstream-123-bindings
[rust-lightning] / lightning / src / onion_message / messenger.rs
index 8fbcb5877d8d7f60108b4a3239d7c44f00e37b22..476655ebeb8becd9350e7d0470f49235999d3a8a 100644 (file)
@@ -569,7 +569,7 @@ pub trait CustomOnionMessageHandler {
 
 /// A processed incoming onion message, containing either a Forward (another onion message)
 /// or a Receive payload with decrypted contents.
-#[derive(Debug)]
+#[derive(Clone, Debug)]
 pub enum PeeledOnion<T: OnionMessageContents> {
        /// Forwarded onion, with the next node id and a new onion
        Forward(NextMessageHop, OnionMessage),