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

Peers to prune: Refactor #14460

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Peers to prune: Refactor #14460

wants to merge 4 commits into from

Conversation

nalepae
Copy link
Contributor

@nalepae nalepae commented Sep 19, 2024

What type of PR is this?
Other

What does this PR do? Why is it needed?
This PR refactors the functions related to peers to prune.

Other notes for review
Please read commit by commit.
No functional change, refactoring only.

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

The only difference between `PeersToPrune` and `deprecatedPeersToPrune` is the way peers to prune are sorted.

All the rest of the code is a duplicate.

This commit removes all code duplication.
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