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

Rename GetPeerList and PeerList messages #3133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MukulKolpe
Copy link

Resolves #3128

Why this should be merged

This change ensures consistency in message naming conventions, aligning get_peerlist and peerlist with other message names such as get_accepted and pull_query. It improves readability and maintains uniformity across the codebase.

How this works

  • get_peerlist is renamed to get_peers.
  • peerlist is renamed to peers.
  • Corresponding CLI flags are updated from peer-list options to peers options.

How this was tested

@MukulKolpe MukulKolpe changed the title Rename GetPeerList and PeerList messages Rename GetPeerList and PeerList messages Jun 20, 2024
Comment on lines 214 to 216
case GetPeerListOp:
return "get_peerlist"
return "get_peers"
case PeerListOp:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there are still a number of places in the code that reference PeerLists. These op types are an example, but I think a number of places in the network package need to be renamed as well as the p2p proto

Copy link
Contributor

Choose a reason for hiding this comment

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

@MukulKolpe were you still planning on working on this?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I'm on it.

Copy link

github-actions bot commented Aug 4, 2024

This PR has become stale because it has been open for 30 days with no activity. Adding the lifecycle/frozen label will cause this PR to ignore lifecycle events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog 🗄️
Development

Successfully merging this pull request may close these issues.

Rename GetPeerList and PeerList messages
2 participants