lighthouse-pulse/beacon_node/network/src
Age Manning babd153352 Prevent adding and dialing bootnodes when discovery is disabled (#2247)
This is a small PR which prevents unwanted bootnodes from being added to the DHT and being dialed when the `--disable-discovery` flag is set. 

The main reason one would want to disable discovery is to connect to a fix set of peers. Currently, regardless of what the user does, Lighthouse will populate its DHT with previously known peers and also fill it with the spec's bootnodes. It will then dial the bootnodes that are capable of being dialed. This prevents testing with a fixed peer list.

This PR prevents these excess nodes from being added and dialed if the user has set `--disable-discovery`.
2021-03-08 06:27:49 +00:00
..
attestation_service Update for clippy 1.50 (#2193) 2021-02-15 00:09:12 +00:00
beacon_processor Handle early blocks (#2155) 2021-02-24 03:08:52 +00:00
router Handle early blocks (#2155) 2021-02-24 03:08:52 +00:00
service Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
sync Handle early blocks (#2155) 2021-02-24 03:08:52 +00:00
error.rs Initial work towards v0.2.0 (#924) 2020-03-17 17:24:44 +11:00
lib.rs Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00
metrics.rs Handle early blocks (#2155) 2021-02-24 03:08:52 +00:00
nat.rs Update for clippy 1.50 (#2193) 2021-02-15 00:09:12 +00:00
persisted_dht.rs Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
service.rs Prevent adding and dialing bootnodes when discovery is disabled (#2247) 2021-03-08 06:27:49 +00:00
status.rs Move some rpc processing to the beacon_processor (#1936) 2020-11-19 23:33:44 +00:00