Skip to content

Commit

Permalink
cleanup unused peer config (#14922)
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored Oct 10, 2023
1 parent ddfdc7a commit 3d728c2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
3 changes: 0 additions & 3 deletions chia/cmds/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def configure(
":".join(set_farmer_peer.split(":")[:-1]),
set_farmer_peer.split(":")[-1],
)
config["full_node"]["farmer_peer"]["host"] = host
config["full_node"]["farmer_peer"]["port"] = int(port)
config["harvester"]["farmer_peer"]["host"] = host
config["harvester"]["farmer_peer"]["port"] = int(port)
print("Farmer peer updated, make sure your harvester has the proper cert installed")
Expand All @@ -71,7 +69,6 @@ def configure(
change_made = True
if set_harvester_port:
config["harvester"]["port"] = int(set_harvester_port)
config["farmer"]["harvester_peer"]["port"] = int(set_harvester_port)
print("Default harvester port updated")
change_made = True
if set_log_level:
Expand Down
2 changes: 0 additions & 2 deletions chia/cmds/sim_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ def create_chia_directory(
config["daemon_port"] -= port_offset
config["network_overrides"]["config"]["simulator0"]["default_full_node_port"] = 38444 + port_offset
# wallet
config["wallet"]["port"] += port_offset
config["wallet"]["rpc_port"] += port_offset
# full node
config["full_node"]["port"] -= port_offset
config["full_node"]["rpc_port"] += port_offset
# connect wallet to full node
config["wallet"]["full_node_peer"]["port"] = config["full_node"]["port"]
config["full_node"]["wallet_peer"]["port"] = config["wallet"]["port"]
# ui
config["ui"]["daemon_port"] = config["daemon_port"]
else:
Expand Down
23 changes: 0 additions & 23 deletions chia/util/initial-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ seeder:
private_key: "config/ssl/crawler/private_crawler.key"

harvester:
# The harvester server (if run) will run on this port
port: 8448
farmer_peer:
host: *self_hostname
port: 8447
Expand Down Expand Up @@ -243,9 +241,6 @@ farmer:
full_node_peer:
host: *self_hostname
port: 8444
harvester_peer:
host: *self_hostname
port: 8448

pool_public_keys: []

Expand Down Expand Up @@ -278,8 +273,6 @@ timelord_launcher:
logging: *logging

timelord:
# The timelord server (if run) will run on this port
port: 8446
# Provides a list of VDF clients expected to connect to this timelord.
# For each client, an IP is provided, together with the estimated iterations per second.
vdf_clients:
Expand Down Expand Up @@ -450,19 +443,10 @@ full_node:
- "chia-seeder.h9.com"
- "chia.hoffmang.com"
- "seeder.xchpool.org"
farmer_peer:
host: *self_hostname
port: 8447
timelord_peer:
host: *self_hostname
port: 8446
introducer_peer:
host: introducer.chia.net # Chia AWS introducer IPv4/IPv6
port: 8444
enable_private_networks: False
wallet_peer:
host: *self_hostname
port: 8449
logging: *logging
network_overrides: *network_overrides
selected_network: *selected_network
Expand All @@ -479,9 +463,6 @@ full_node:
use_chia_loop_policy: True

ui:
# The ui node server (if run) will run on this port
port: 8222

# Which port to use to communicate with the full node
rpc_port: 8555

Expand Down Expand Up @@ -515,7 +496,6 @@ introducer:
public_key: "config/ssl/full_node/public_full_node.key"

wallet:
port: 8449
rpc_port: 9256

enable_profiler: False
Expand Down Expand Up @@ -633,9 +613,6 @@ wallet:
data_layer:
# TODO: consider name
# TODO: organize consistently with other sections

# TODO: shouldn't we not need this since we have no actual public interface (yet)?
port: 8561
wallet_peer:
host: localhost
port: 9256
Expand Down

0 comments on commit 3d728c2

Please sign in to comment.