You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Motivation**
Support rpc endpoint `admin_peers`
<!-- Why does this pull request exist? What are its goals? -->
**Description**
* Add rpc endpoint `admin_peers`
* Track inbound connections
* Store peer node version when starting a connection
* Add `peer_handler: PeerHandler` field to `RpcContext` so we can access
peers from the rpc
* (Misc) `Syncer` & `SyncManager` now receive a `PeerHandler` upon
creation instead of a `KademliaTable`
* (Misc) Fix common typo across the project
<!-- A clear and concise general description of the changes this PR
introduces -->
Data missing compared to geth implementation:
* The local address of each connection
* Whether a connection is trusted, static (we have no notion of this
yet)
<!-- Link to issues: Resolves#111, Resolves#222 -->
Closes#2671
See https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-admin#admin-peers as reference
This the first issue where a rpc endpoint needs to reference something from p2p crate. We need to find an elegant way to do this.
The text was updated successfully, but these errors were encountered: