Skip to content

Fix duplicate config - #33

Open
R27-pixel wants to merge 6 commits into
p2poolv2:mainfrom
R27-pixel:fix_duplicate_config
Open

R27-pixel wants to merge 6 commits into
p2poolv2:mainfrom
R27-pixel:fix_duplicate_config

Conversation

@R27-pixel

Copy link
Copy Markdown
Contributor

Remove duplicate PDM API configuration and use P2Poolv2 [api] config as the single source of truth for HTTP/WebSocket clients.

Adds test coverage for API configuration, authentication, WebSocket subscriptions, and client refresh.

Removing bitcoin_conf_path left several tests in settings.rs with
no remaining assertions - some passed trivially with zero checks.
Rebuilt using p2pool_conf_path as the differentiating field:

- load_settings_returns_default_when_file_missing/for_invalid_toml:
  restored default-field assertions
- load_settings_reads_valid_file: was writing/loading/asserting
  nothing; now round-trips a real p2pool_conf_path value
- save_with_override_writes_to_override_dir_and_default: assert
  override and default copies match
- load_settings_reads_from_override_dir_when_set /
  load_settings_falls_back_to_default_when_override_unreadable:
  pointer and authoritative Settings were identical, so nothing
  could prove which one loaded - gave each a distinct
  p2pool_conf_path and assert the correct one wins
@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.87955% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/app.rs 96.96% 2 Missing ⚠️
src/components/p2pool_status_view.rs 92.85% 1 Missing ⚠️
src/ui.rs 92.85% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant