File tree Expand file tree Collapse file tree 5 files changed +0
-38
lines changed
Expand file tree Collapse file tree 5 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,6 @@ pub struct Config {
7373 /// List of nodes to initially connect to, on Multiaddr format.
7474 pub boot_nodes_multiaddr : Vec < Multiaddr > ,
7575
76- /// List of libp2p nodes to initially connect to.
77- pub libp2p_nodes : Vec < Multiaddr > ,
78-
7976 /// List of trusted libp2p nodes which are not scored and marked as explicit.
8077 pub trusted_peers : Vec < PeerIdSerialized > ,
8178
@@ -343,7 +340,6 @@ impl Default for Config {
343340 discv5_config,
344341 boot_nodes_enr : vec ! [ ] ,
345342 boot_nodes_multiaddr : vec ! [ ] ,
346- libp2p_nodes : vec ! [ ] ,
347343 trusted_peers : vec ! [ ] ,
348344 disable_peer_scoring : false ,
349345 client_version : lighthouse_version:: version_with_platform ( ) ,
Original file line number Diff line number Diff line change @@ -573,11 +573,6 @@ impl<E: EthSpec> Network<E> {
573573 } ;
574574 } ;
575575
576- // attempt to connect to user-input libp2p nodes
577- for multiaddr in & config. libp2p_nodes {
578- dial ( multiaddr. clone ( ) ) ;
579- }
580-
581576 // attempt to connect to any specified boot-nodes
582577 let mut boot_nodes = config. boot_nodes_enr . clone ( ) ;
583578 boot_nodes. dedup ( ) ;
Original file line number Diff line number Diff line change @@ -359,15 +359,6 @@ pub fn cli_app() -> Command {
359359 This disables this feature, fixing the ENR's IP/PORT to those specified on boot.")
360360 . display_order ( 0 )
361361 )
362- . arg (
363- Arg :: new ( "libp2p-addresses" )
364- . long ( "libp2p-addresses" )
365- . value_name ( "MULTIADDR" )
366- . help ( "One or more comma-delimited multiaddrs to manually connect to a libp2p peer \
367- without an ENR.")
368- . action ( ArgAction :: Set )
369- . display_order ( 0 )
370- )
371362 // NOTE: This is hide because it is primarily a developer feature for testnets and
372363 // debugging. We remove it from the list to avoid clutter.
373364 . arg (
Original file line number Diff line number Diff line change @@ -1196,12 +1196,6 @@ pub fn set_network_config(
11961196 let multi: Multiaddr = addr
11971197 . parse ( )
11981198 . map_err ( |_| format ! ( "Not valid as ENR nor Multiaddr: {}" , addr) ) ?;
1199- if !multi. iter ( ) . any ( |proto| matches ! ( proto, Protocol :: Udp ( _) ) ) {
1200- error ! ( multiaddr = multi. to_string( ) , "Missing UDP in Multiaddr" ) ;
1201- }
1202- if !multi. iter ( ) . any ( |proto| matches ! ( proto, Protocol :: P2p ( _) ) ) {
1203- error ! ( multiaddr = multi. to_string( ) , "Missing P2P in Multiaddr" ) ;
1204- }
12051199 multiaddrs. push ( multi) ;
12061200 }
12071201 }
@@ -1210,17 +1204,6 @@ pub fn set_network_config(
12101204 config. boot_nodes_multiaddr = multiaddrs;
12111205 }
12121206
1213- if let Some ( libp2p_addresses_str) = cli_args. get_one :: < String > ( "libp2p-addresses" ) {
1214- config. libp2p_nodes = libp2p_addresses_str
1215- . split ( ',' )
1216- . map ( |multiaddr| {
1217- multiaddr
1218- . parse ( )
1219- . map_err ( |_| format ! ( "Invalid Multiaddr: {}" , multiaddr) )
1220- } )
1221- . collect :: < Result < Vec < Multiaddr > , _ > > ( ) ?;
1222- }
1223-
12241207 if parse_flag ( cli_args, "disable-peer-scoring" ) {
12251208 config. disable_peer_scoring = true ;
12261209 }
Original file line number Diff line number Diff line change @@ -223,9 +223,6 @@ Options:
223223 store the block SSZ as a file at this path. This feature is only
224224 recommended for developers. This directory is not pruned, users should
225225 be careful to avoid filling up their disks.
226- --libp2p-addresses <MULTIADDR>
227- One or more comma-delimited multiaddrs to manually connect to a libp2p
228- peer without an ENR.
229226 --listen-address [<ADDRESS>...]
230227 The address lighthouse will listen for UDP and TCP connections. To
231228 listen over IPv4 and IPv6 set this flag twice with the different
You can’t perform that action at this time.
0 commit comments