Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for defining a list of full node peers to connect to #17369

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chia/server/start_full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from chia.server.start_service import RpcInfo, Service, async_run
from chia.types.aliases import FullNodeService
from chia.util.chia_logging import initialize_service_logging
from chia.util.config import load_config, load_config_cli
from chia.util.config import get_unresolved_peer_infos, load_config, load_config_cli
from chia.util.default_root import DEFAULT_ROOT_PATH
from chia.util.ints import uint16
from chia.util.misc import SignalHandlers
Expand Down Expand Up @@ -61,6 +61,7 @@ async def create_full_node_service(
advertised_port=service_config["port"],
service_name=SERVICE_NAME,
upnp_ports=upnp_list,
connect_peers=get_unresolved_peer_infos(service_config, NodeType.FULL_NODE),
on_connect_callback=full_node.on_connect,
network_id=network_id,
rpc_info=rpc_info,
Expand Down
2 changes: 2 additions & 0 deletions chia/util/initial-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ timelord:
full_node:
# The full node server (if run) will run on this port
port: 8444
# The full node will attempt to connect to these full nodes
full_node_peers: []

# controls the sync-to-disk behavior of the database connection. Can be one of:
# "on" enables syncing to disk, minimizes risk of corrupting the DB in
Expand Down
Loading