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

chore(RPCs): rename get_peers_info RPC to get_directly_connected_peers #2195

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

onur-ozkan
Copy link
Member

@onur-ozkan onur-ozkan commented Aug 21, 2024

get_peers_info RPC is misleading based on its name. As documented in kdf docs, it claims "all connected peers", however, in reality it only returns the directly connected peers, not all network peers. This PR renames the RPC to get_directly_connected_peers which causes a breaking change. Considering this RPC isn't widely used, this impact should be affordable.

@onur-ozkan onur-ozkan force-pushed the update-get_peers_info-rpc branch from ab2e2f0 to f06f614 Compare September 10, 2024 04:53
@onur-ozkan onur-ozkan changed the title chore(RPCs): rename get_peers_info RPC to get_seeds_info chore(RPCs): rename get_peers_info RPC to get_directly_connected_peers Sep 10, 2024
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

Two more minor comments.

mm2src/mm2_net/src/network_event.rs Outdated Show resolved Hide resolved
mm2src/mm2_main/src/rpc/dispatcher/dispatcher_legacy.rs Outdated Show resolved Hide resolved
@onur-ozkan onur-ozkan force-pushed the update-get_peers_info-rpc branch from f06f614 to 98624ca Compare September 10, 2024 05:07
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

🙏

@shamardy shamardy added QA and removed documentation labels Sep 10, 2024
@shamardy shamardy merged commit d1a8ea7 into dev Sep 10, 2024
21 of 30 checks passed
@shamardy shamardy deleted the update-get_peers_info-rpc branch September 10, 2024 06:26
dimxy added a commit to dimxy/komodo-defi-framework that referenced this pull request Sep 13, 2024
* dev:
  chore(RPCs): rename `get_peers_info` RPC to `get_directly_connected_peers` (KomodoPlatform#2195)
  chore(WASM-builds): remove `wasm-opt` overriding (KomodoPlatform#2200)
  fix(coins): add p2p feature to mm2_net dependency (KomodoPlatform#2210)
  chore(test): turn on debug assertion (KomodoPlatform#2204)
  feat(sia): extract sia lib to external repo (KomodoPlatform#2167)
  feat(eth-swap): eth tpu v2 methods, eth docker test enhancements (KomodoPlatform#2169)
  fix(cors): allow OPTIONS request to KDF server (KomodoPlatform#2191)
  docs(README): update commit badges to use dev branch (KomodoPlatform#2193)
  use default value for `komodo_proxy` (KomodoPlatform#2192)
  feat(cosmos): komodo-defi-proxy support (KomodoPlatform#2173)
dimxy added a commit that referenced this pull request Sep 13, 2024
* dev:
  chore(RPCs): rename `get_peers_info` RPC to `get_directly_connected_peers` (#2195)
  chore(WASM-builds): remove `wasm-opt` overriding (#2200)
  fix(coins): add p2p feature to mm2_net dependency (#2210)
  chore(test): turn on debug assertion (#2204)
  feat(sia): extract sia lib to external repo (#2167)
  feat(eth-swap): eth tpu v2 methods, eth docker test enhancements (#2169)
  fix(cors): allow OPTIONS request to KDF server (#2191)
  docs(README): update commit badges to use dev branch (#2193)
  use default value for `komodo_proxy` (#2192)
  feat(cosmos): komodo-defi-proxy support (#2173)
@smk762 smk762 removed the docs label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants