projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stop decaying liquidity information during bounds-based scoring
[rust-lightning]
/
lightning
/
src
/
onion_message
/
packet.rs
diff --git
a/lightning/src/onion_message/packet.rs
b/lightning/src/onion_message/packet.rs
index ba90c717b34181783506f0ab5018fc15ec8093de..5ce02c54d08800b777a0c2c3a25f27ba1ffae462 100644
(file)
--- a/
lightning/src/onion_message/packet.rs
+++ b/
lightning/src/onion_message/packet.rs
@@
-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
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,
pub struct Packet {
/// Bolt 04 version number
pub version: u8,
@@
-147,7
+147,7
@@
impl<T: OnionMessageContents> Writeable for ParsedOnionMessageContents<T> {
}
/// The contents of an onion message.
}
/// The contents of an onion message.
-pub trait OnionMessageContents: Writeable {
+pub trait OnionMessageContents: Writeable
+ core::fmt::Debug
{
/// Returns the TLV type identifying the message contents. MUST be >= 64.
fn tlv_type(&self) -> u64;
}
/// Returns the TLV type identifying the message contents. MUST be >= 64.
fn tlv_type(&self) -> u64;
}