lighthouse/beacon_node/network
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
..
src Prevent adding and dialing bootnodes when discovery is disabled (#2247) 2021-03-08 06:27:49 +00:00
Cargo.toml Handle early blocks (#2155) 2021-02-24 03:08:52 +00:00