parity-ethereum icon indicating copy to clipboard operation
parity-ethereum copied to clipboard

RPC: parity_addReservedPeer endpoint not available over IPC by default (if at all?)

Open meowsbits opened this issue 5 years ago • 0 comments

  • OpenEthereum version: 3.0.0
  • Operating system: Linux
  • Installation: downloaded binary
  • Fully synchronized: no
  • Network: classic
  • Restarted: yes

Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.

I expect parity_addReservedPeer to be an endpoint available by default over the IPC interface.

  • https://openethereum.github.io/wiki/JSONRPC-parity_set-module#parity_addreservedpeer
API and Console Options – IPC:
    --no-ipc
        Disable JSON-RPC over IPC service.

    --ipc-path=[PATH]
        Specify custom path for JSON-RPC over IPC service. (default: $BASE/jsonrpc.ipc)

    --ipc-chmod=[NUM]
        Specify octal value for ipc socket permissions (unix/bsd only) (default: 660)

    --ipc-apis=[APIS]
        Specify custom API set available via JSON-RPC over IPC using a comma-delimited list of API names. Possible names
        are: all, safe, web3, net, eth, pubsub, personal, signer, parity, parity_pubsub, parity_accounts, parity_set,
        traces, rpc, secretstore. You can also disable a specific API by putting '-' in the front, example:
        all,-personal. 'safe' enables the following APIs: web3, net, eth, pubsub, parity, parity_pubsub, traces, rpc
        (default: web3,eth,pubsub,net,parity,parity_pubsub,parity_accounts,private,traces,rpc,parity_transactions_pool)

I get "Method not found":

> echo '{"id": 1, "jsonrpc": "2.0", "method": "parity_addReservedPeer", "params": ["enode://45ae9730374cf8b9b1d2cb4a96c67efb251e39c2784e38dc21ebdc83ab94ae63d6fe03b512dd8d6660960cbcb17b6a3eea2adee68b0eb7cc227c2837337d2308@152.204.36.93:30303"]}' | nc -U -W 1 /tmp/parity_classic.ipc
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}
> echo '{"id": 1, "jsonrpc": "2.0", "method": "rpc_modules", "params": []}' | nc -U -W 1 /tmp/parity_classic.ipc
{"jsonrpc":"2.0","result":{"eth":"1.0","net":"1.0","parity":"1.0","parity_accounts":"1.0","parity_pubsub":"1.0","parity_transactions_pool":"1.0","private":"1.0","pubsub":"1.0","rpc":"1.0","traces":"1.0","web3":"1.0"},"id":1}

meowsbits avatar May 31 '20 19:05 meowsbits