Skip to content

Remove config keys that nothing reads from initial-config.yaml - #21279

Draft
richardkiss wants to merge 2 commits into
Chia-Network:mainfrom
richardkiss:techdebt-dead-config
Draft

Remove config keys that nothing reads from initial-config.yaml#21279
richardkiss wants to merge 2 commits into
Chia-Network:mainfrom
richardkiss:techdebt-dead-config

Conversation

@richardkiss

Copy link
Copy Markdown
Contributor

Eight keys in the default config template are read by no code anywhere (chia/, tools/, benchmarks/, tests — checked by grepping every template key against the codebase). Dated with git log -S over full history including the pre-2021 src/ era:

Key Section Reader removed
ssh_filename ui Mar 2020 (e83aa36b "remove SSH ui and dependencies") — outlived its feature by 6 years
pool_share_threshold farmer Jan 2021
ips_estimate timelord Jan 2021
max_connection_time timelord Jan 2021
nft_metadata_cache_path, nft_metadata_cache_hash_length wallet reader landed #13018, reverted #13660 (Oct 2022); keys stayed
peer_db_path full_node migration removed #17517 (Feb 2024); was comment-marked deprecated
wallet_peers_path wallet same (#17517); was comment-marked deprecated

Also searched Chia-Network/chia-blockchain-gui via GitHub code search for all eight keys: zero references.

Template-only change (-16 lines, one file): existing user configs keep whatever keys they have (ignored today, ignored after); new installs stop inheriting dead keys. daemon_host and everything else in the ui section is untouched.

Gates run locally: YAML parses; chia/_tests/core/util/test_config.py 10/10 passed.

Made with Cursor

Eight keys in the default config template are read by no code. Dated by
when their readers were removed: ssh_filename (SSH UI deleted Mar 2020),
pool_share_threshold / ips_estimate / max_connection_time (Jan 2021),
nft_metadata_cache_path + _hash_length (reader reverted in Chia-Network#13660,
Oct 2022), peer_db_path / wallet_peers_path (migration removed in Chia-Network#17517,
Feb 2024; both were already comment-marked deprecated).

Template-only change: existing user configs are unaffected; new installs
stop inheriting dead keys. The GUI repo was searched for all eight keys
(GitHub code search): zero references.

Co-authored-by: Cursor <cursoragent@cursor.com>
@richardkiss richardkiss added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Aug 14, 2026
@richardkiss
richardkiss temporarily deployed to windows-code-signing August 14, 2026 20:42 — with GitHub Actions Inactive
@coveralls-official

Copy link
Copy Markdown

Coverage Report for CI Build 31839108914

Warning

No base build found for commit 0b88565 on main.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 92.094%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 126197
Covered Lines: 116361
Line Coverage: 92.21%
Relevant Branches: 12405
Covered Branches: 11283
Branch Coverage: 90.96%
Branches in Coverage %: Yes
Coverage Strength: 1.84 hits per line

💛 - Coveralls

@richardkiss
richardkiss marked this pull request as ready for review August 21, 2026 23:29
@richardkiss
richardkiss requested a review from a team as a code owner August 21, 2026 23:29
@richardkiss
richardkiss requested review from emlowe and a lite review from Copilot August 21, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes dead/unused configuration keys from the default initial-config.yaml template so new installs no longer inherit settings that are not read anywhere in the current codebase.

Changes:

  • Removed unused pool_share_threshold from farmer.
  • Removed unused ips_estimate / max_connection_time from timelord.vdf_clients.
  • Removed deprecated/unused peer_db_path, ssh_filename, nft_metadata_cache_*, and wallet_peers_path template entries.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 258 to 260
- *self_hostname
- localhost
- 127.0.0.1
@richardkiss
richardkiss removed the request for review from emlowe August 22, 2026 00:41
@richardkiss
richardkiss marked this pull request as draft August 22, 2026 00:41
Co-authored-by: Cursor <cursoragent@cursor.com>
@richardkiss
richardkiss temporarily deployed to windows-code-signing August 22, 2026 01:24 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changed Required label for PR that categorizes merge commit message as "Changed" for changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants