projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
derive(Clone) for several pub simple data structs.
[rust-lightning]
/
lightning
/
src
/
ln
/
msgs.rs
diff --git
a/lightning/src/ln/msgs.rs
b/lightning/src/ln/msgs.rs
index 16ba08629fe66bab2cfe0f2d4b2b036e981d4234..f57cf0fd1fb9304fac06f34fad5164e6e8a1dfe4 100644
(file)
--- a/
lightning/src/ln/msgs.rs
+++ b/
lightning/src/ln/msgs.rs
@@
-64,6
+64,7
@@
pub enum DecodeError {
}
/// An init message to be sent or received from a peer
}
/// An init message to be sent or received from a peer
+#[derive(Clone)]
pub struct Init {
#[cfg(not(feature = "fuzztarget"))]
pub(crate) features: InitFeatures,
pub struct Init {
#[cfg(not(feature = "fuzztarget"))]
pub(crate) features: InitFeatures,
@@
-84,6
+85,7
@@
pub struct ErrorMessage {
}
/// A ping message to be sent or received from a peer
}
/// A ping message to be sent or received from a peer
+#[derive(Clone)]
pub struct Ping {
/// The desired response length
pub ponglen: u16,
pub struct Ping {
/// The desired response length
pub ponglen: u16,
@@
-93,6
+95,7
@@
pub struct Ping {
}
/// A pong message to be sent or received from a peer
}
/// A pong message to be sent or received from a peer
+#[derive(Clone)]
pub struct Pong {
/// The pong packet size.
/// This field is not sent on the wire. byteslen zeros are sent.
pub struct Pong {
/// The pong packet size.
/// This field is not sent on the wire. byteslen zeros are sent.