projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support (de)serializing Path::blinded_tails in Routes
[rust-lightning]
/
lightning
/
src
/
routing
/
gossip.rs
diff --git
a/lightning/src/routing/gossip.rs
b/lightning/src/routing/gossip.rs
index 866fdc5caa7df9ec647fa11853c5b2a0a6694332..59268b840cd4c411b7a1545905bf17a4b6a24be0 100644
(file)
--- a/
lightning/src/routing/gossip.rs
+++ b/
lightning/src/routing/gossip.rs
@@
-1134,7
+1134,7
@@
impl Readable for NodeAnnouncementInfo {
///
/// Since node aliases are provided by third parties, they are a potential avenue for injection
/// attacks. Care must be taken when processing.
///
/// Since node aliases are provided by third parties, they are a potential avenue for injection
/// attacks. Care must be taken when processing.
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Clone,
Copy,
Debug, PartialEq, Eq)]
pub struct NodeAlias(pub [u8; 32]);
impl fmt::Display for NodeAlias {
pub struct NodeAlias(pub [u8; 32]);
impl fmt::Display for NodeAlias {
@@
-1427,7
+1427,7
@@
impl<L: Deref> NetworkGraph<L> where L::Target: Logger {
features: msg.features.clone(),
last_update: msg.timestamp,
rgb: msg.rgb,
features: msg.features.clone(),
last_update: msg.timestamp,
rgb: msg.rgb,
- alias:
NodeAlias(msg.alias)
,
+ alias:
msg.alias
,
announcement_message: if should_relay { full_msg.cloned() } else { None },
});
announcement_message: if should_relay { full_msg.cloned() } else { None },
});
@@
-2060,7
+2060,7
@@
pub(crate) mod tests {
timestamp: 100,
node_id,
rgb: [0; 3],
timestamp: 100,
node_id,
rgb: [0; 3],
- alias:
[0; 32]
,
+ alias:
NodeAlias([0; 32])
,
addresses: Vec::new(),
excess_address_data: Vec::new(),
excess_data: Vec::new(),
addresses: Vec::new(),
excess_address_data: Vec::new(),
excess_data: Vec::new(),