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

rpcserver: Remove unneeded AddedNodeInfo method. #3236

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Apr 30, 2024

The RPC server was refactored some time ago to decouple it from the internals of the main server and part of that refactoring modified the RPC server to make use of a local peer interface to obtain all necessary information about peers which is then used to create RPC server results. Due to that, the AddedNodeInfo and PersistentPeers methods now do the exact same thing.

This modifies the rpcserver.ConnManager interface to remove the now unnecessary AddedNodeInfo method in favor of the PersistentPeers method and updates all relevant code accordingly.

@davecgh davecgh added this to the 1.9.0 milestone Apr 30, 2024
@davecgh davecgh force-pushed the rpcserver_added_node_to_persistent_peers branch from 29e11bd to 13c49c1 Compare May 4, 2024 02:29
The RPC server was refactored some time ago to decouple it from the
internals of the main server and part of that refactoring modified the
RPC server to make use of a local peer interface to obtain all necessary
information about peers which is then used to create RPC server results.
Due to that, the AddedNodeInfo and PersistentPeers methods now do the
exact same thing.

This modifies the rpcserver.ConnManager interface to remove the now
unnecessary AddedNodeInfo method in favor of the PersistentPeers method
and updates all relevant code accordingly.
@davecgh davecgh force-pushed the rpcserver_added_node_to_persistent_peers branch from 13c49c1 to 8385f25 Compare May 9, 2024 05:20
@davecgh davecgh merged commit 8385f25 into decred:master May 9, 2024
2 checks passed
@davecgh davecgh deleted the rpcserver_added_node_to_persistent_peers branch May 9, 2024 05:23
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.

2 participants