RPC: admin.peers() (#3960)
* RPC: admin.peers() This RPC method returns information about the connected remote nodes. https://geth.ethereum.org/docs/rpc/ns-admin#admin_peers The peers are collected from all configured sentries. See: https://github.com/ledgerwatch/interfaces/pull/102 Test with: curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id":1}' localhost:8545 * save * liner fix Co-authored-by:alex.sharov <AskAlexSharov@gmail.com>
Showing
- cmd/downloader/downloader/downloader.go 0 additions, 13 deletionscmd/downloader/downloader/downloader.go
- cmd/rpcdaemon/commands/admin_api.go 8 additions, 0 deletionscmd/rpcdaemon/commands/admin_api.go
- cmd/rpcdaemon/services/eth_backend.go 38 additions, 0 deletionscmd/rpcdaemon/services/eth_backend.go
- cmd/sentry/sentry/sentry.go 30 additions, 3 deletionscmd/sentry/sentry/sentry.go
- eth/backend.go 13 additions, 0 deletionseth/backend.go
- ethdb/privateapi/ethbackend.go 5 additions, 0 deletionsethdb/privateapi/ethbackend.go
- go.mod 1 addition, 1 deletiongo.mod
- go.sum 2 additions, 2 deletionsgo.sum
Loading
Please register or sign in to comment