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

LedgerPeers: code cleanup #5090

Merged
merged 4 commits into from
Mar 7, 2025
Merged

LedgerPeers: code cleanup #5090

merged 4 commits into from
Mar 7, 2025

Conversation

coot
Copy link
Contributor

@coot coot commented Mar 6, 2025

Description

This PR removes dependency between LedgerPeers and RootPeersDNS.LedgerPeers
modules which allows us to remove the LedgerPeers.Common module.

  • ledger-peers: code style
  • ledger-peers: make RootPeersDNS.LedgerPeers independent of LedgerPeers.Common
  • ledger-peers: removed Common type

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@coot coot requested review from a team as code owners March 6, 2025 08:50
@coot coot force-pushed the coot/ledger-peers-cleanup branch from f4032d4 to 37e0de3 Compare March 6, 2025 09:05
@coot coot self-assigned this Mar 6, 2025
@coot coot enabled auto-merge March 6, 2025 12:20
coot added 3 commits March 6, 2025 13:20
…Peers and LedgerPeers

This removes a dependency between `RootPeersDNS` and `LedgerPeers`,
which allows us to remove `LedgerPeers.Common` module:

* moved `IsLedgerPeers` to `LedgerPeers.Type` module in
  `ouroboros-network-api`.  Next to `IsBigLedgerPeer`;
* moved `LedgerPeers` to `LedgerPeers` where it is used.
`PeerActionsDNS` is already exported via the `DNSActions` module.
@coot coot force-pushed the coot/ledger-peers-cleanup branch 2 times, most recently from 365a811 to 913c757 Compare March 7, 2025 07:55
@coot coot force-pushed the coot/ledger-peers-cleanup branch from 913c757 to 99da7ca Compare March 7, 2025 17:08
@coot coot added this pull request to the merge queue Mar 7, 2025
Merged via the queue into main with commit 18051ef Mar 7, 2025
13 checks passed
@coot coot deleted the coot/ledger-peers-cleanup branch March 7, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants