Skip to content

Commit

Permalink
add 'is_bootstrap_node' conf
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed Jul 29, 2022
1 parent 3390ed2 commit c989828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lbry/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions lbry/extras/daemon/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ async def start(self):
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)
Expand Down

0 comments on commit c989828

Please sign in to comment.