File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -307,9 +307,10 @@ impl NodeBuilder {
307
307
Ok ( self )
308
308
}
309
309
310
- /// Sets the alias the [`Node`] will use in its announcement.
310
+ /// Sets the node alias that will be used when broadcasting announcements to the gossip
311
+ /// network.
311
312
///
312
- /// The provided alias must be a valid UTF-8 string.
313
+ /// The provided alias must be a valid UTF-8 string and no longer than 32 bytes in total .
313
314
pub fn set_node_alias ( & mut self , node_alias : String ) -> Result < & mut Self , BuildError > {
314
315
let node_alias = sanitize_alias ( & node_alias) ?;
315
316
@@ -515,7 +516,10 @@ impl ArcedNodeBuilder {
515
516
self . inner . write ( ) . unwrap ( ) . set_listening_addresses ( listening_addresses) . map ( |_| ( ) )
516
517
}
517
518
518
- /// Sets the node alias.
519
+ /// Sets the node alias that will be used when broadcasting announcements to the gossip
520
+ /// network.
521
+ ///
522
+ /// The provided alias must be a valid UTF-8 string and no longer than 32 bytes in total.
519
523
pub fn set_node_alias ( & self , node_alias : String ) -> Result < ( ) , BuildError > {
520
524
self . inner . write ( ) . unwrap ( ) . set_node_alias ( node_alias) . map ( |_| ( ) )
521
525
}
Original file line number Diff line number Diff line change @@ -113,12 +113,14 @@ pub struct Config {
113
113
pub network : Network ,
114
114
/// The addresses on which the node will listen for incoming connections.
115
115
///
116
- /// **Note**: Node announcements will only be broadcast if the `node_alias` and the
116
+ /// **Note**: We will only allow opening and accepting public channels if the `node_alias` and the
117
117
/// `listening_addresses` are set.
118
118
pub listening_addresses : Option < Vec < SocketAddress > > ,
119
- /// The node alias to be used in announcements.
119
+ /// The node alias that will be used when broadcasting announcements to the gossip network .
120
120
///
121
- /// **Note**: Node announcements will only be broadcast if the `node_alias` and the
121
+ /// The provided alias must be a valid UTF-8 string and no longer than 32 bytes in total.
122
+ ///
123
+ /// **Note**: We will only allow opening and accepting public channels if the `node_alias` and the
122
124
/// `listening_addresses` are set.
123
125
pub node_alias : Option < NodeAlias > ,
124
126
/// The time in-between background sync attempts of the onchain wallet, in seconds.
You can’t perform that action at this time.
0 commit comments