diff --git a/lbry/conf.py b/lbry/conf.py index 6da4952d1..d2dc8bb3a 100644 --- a/lbry/conf.py +++ b/lbry/conf.py @@ -624,6 +624,10 @@ class Config(CLIConfig): "will increase. This setting is used by seed nodes, you probably don't want to change it during normal " "use.", 2 ) + is_bootstrap_node = Toggle( + "When running as a bootstrap node, disable all logic related to balancing the routing table, so we can " + "add as many peers as possible and better help first-runs.", False + ) # protocol timeouts download_timeout = Float("Cumulative timeout for a stream to begin downloading before giving up", 30.0) diff --git a/lbry/extras/daemon/components.py b/lbry/extras/daemon/components.py index e061c4363..637ede42e 100644 --- a/lbry/extras/daemon/components.py +++ b/lbry/extras/daemon/components.py @@ -297,6 +297,7 @@ class DHTComponent(Component): peer_port=self.external_peer_port, rpc_timeout=self.conf.node_rpc_timeout, split_buckets_under_index=self.conf.split_buckets_under_index, + is_bootstrap_node=self.conf.is_bootstrap_node, storage=storage ) self.dht_node.start(self.conf.network_interface, self.conf.known_dht_nodes)