Skip to content

Reduce default op-reth RPC APIs #42

Description

@ZEROBASEzk

Description

GIWA currently enables more RPC namespaces than Reth's standard eth,net,web3 set:

--ws.api=web3,debug,eth,net,txpool
--http.api=web3,debug,eth,net,txpool,miner

The additional namespaces increase the exposed RPC surface:

  • debug methods can consume significant resources.
  • txpool exposes the node-local transaction pool.
  • miner allows changes to block-builder settings.

These APIs are not required for standard GIWA node operation.

Proposed change

Use a smaller default API set while allowing operators to enable additional namespaces through .env.{network}:

--http.api="${RETH_HTTP_API:-eth,net,web3}"
--ws.api="${RETH_WS_API:-eth,net,web3}"

Example:

RETH_HTTP_API=eth,net,web3,debug
RETH_WS_API=eth,net,web3,txpool

Reth also supports all and none.

Compatibility

This changes the default behavior. Existing users of debug, txpool, or miner must explicitly enable those namespaces after upgrading.

The README should document the new environment variables and include an upgrade note.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions