Skip to content

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

Merged
shamardy merged 1 commit intodevfrom
update-get_peers_info-rpc
Sep 10, 2024
Merged

chore(RPCs): rename get_peers_info RPC to get_directly_connected_peers#2195
shamardy merged 1 commit intodevfrom
update-get_peers_info-rpc

Conversation

@onur-ozkan
Copy link
Copy Markdown

@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
Copy Markdown
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.

…ate its doc

Signed-off-by: onur-ozkan <work@onurozkan.dev>
@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
Copy Markdown
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
@shamardy shamardy deleted the update-get_peers_info-rpc branch September 10, 2024 06:26
dimxy pushed 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` (GLEECBTC#2195)
  chore(WASM-builds): remove `wasm-opt` overriding (GLEECBTC#2200)
  fix(coins): add p2p feature to mm2_net dependency (GLEECBTC#2210)
  chore(test): turn on debug assertion (GLEECBTC#2204)
  feat(sia): extract sia lib to external repo (GLEECBTC#2167)
  feat(eth-swap): eth tpu v2 methods, eth docker test enhancements (GLEECBTC#2169)
  fix(cors): allow OPTIONS request to KDF server (GLEECBTC#2191)
  docs(README): update commit badges to use dev branch (GLEECBTC#2193)
  use default value for `komodo_proxy` (GLEECBTC#2192)
  feat(cosmos): komodo-defi-proxy support (GLEECBTC#2173)
dimxy pushed 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