Skip to content

Commit 4f8f481

Browse files
committed
f - more fixes
1 parent 5e156de commit 4f8f481

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/gossip.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,8 @@ impl_writeable_tlv_based!(NodeAnnouncementInfo, {
925925

926926
/// A user-defined name for a node, which may be used when displaying the node in a graph.
927927
///
928-
/// Node aliases provide a potential avenue for injection attacks. See [security considerations].
929-
///
930-
/// [security considerations]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#security-considerations-for-node-aliases
928+
/// Since node aliases are provided by third parties, they are a potential avenue for injection
929+
/// attacks. Care must be taken when processing.
931930
#[derive(Clone, Debug, PartialEq)]
932931
pub struct NodeAlias(pub [u8; 32]);
933932

@@ -944,6 +943,7 @@ impl fmt::Display for NodeAlias {
944943
},
945944
Err(_) => {
946945
bytes.iter().map(|b| *b as char)
946+
// Display printable ASCII characters
947947
.map(|c| if c >= '\x20' && c <= '\x7e' { c } else { control_symbol })
948948
.collect::<String>()
949949
},

0 commit comments

Comments
 (0)