Skip to content

Refactor: Remove unused LN and Shares Market features - #32

Open
R27-pixel wants to merge 5 commits into
p2poolv2:mainfrom
R27-pixel:cleanup-ln-sharemarket
Open

R27-pixel wants to merge 5 commits into
p2poolv2:mainfrom
R27-pixel:cleanup-ln-sharemarket

Conversation

@R27-pixel

Copy link
Copy Markdown
Contributor

Summary

Remove the currently unused Lightning Network and Shares Market screens from PDM.

Removed

  • LN Config
  • LN Status
  • Shares Market

Reason

These screens are not needed at the moment. Per maintainer feedback, they can be reintroduced later if the functionality becomes necessary.

Changes

  • Removed the screens from sidebar navigation
  • Removed their UI routing and related handlers
  • Removed associated tests/snapshots and unused code
  • Cleaned up related imports and references

This keeps the current UI focused on the functionality that is currently required.

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 Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.26087% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/app.rs 66.66% 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