Skip to content

LedgerPeers: code cleanup#5090

Merged
coot merged 4 commits intomainfrom
coot/ledger-peers-cleanup
Mar 7, 2025
Merged

LedgerPeers: code cleanup#5090
coot merged 4 commits intomainfrom
coot/ledger-peers-cleanup

Conversation

@coot
Copy link
Collaborator

@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 a review from a team as a code owner March 6, 2025 08:50
@github-project-automation github-project-automation bot moved this to In Progress in Ouroboros Network Mar 6, 2025
@coot coot requested a review from a team as a code owner March 6, 2025 08:54
@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
@github-project-automation github-project-automation bot moved this from In Progress to Done in Ouroboros Network Mar 7, 2025
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