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

Remove BannableAddress generic (p2p) #1117

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

pavel-kokolemin
Copy link
Contributor

Up for discussion. I think it's time to remove two generic network addresses from p2p: NetworkingService::Address and NetworkingService::BannableAddress. Currently we use SocketAddr/IpAddr as Address/BannableAddress everywhere, and I don't see that changing anytime soon. Without these two generics, the code should be a bit cleaner. This PR removes BanableAddress to show this. If you agree, the next step will be to remove NetworkingService::Address as well.

Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the comments, I'm OK with this.

Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking fine now.

@pavel-kokolemin pavel-kokolemin merged commit 7b532b7 into master Aug 1, 2023
23 checks passed
@pavel-kokolemin pavel-kokolemin deleted the p2p_addresses_refactor branch August 1, 2023 15:13
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.

None yet

3 participants