Skip to content

rpc: expose testing_ namespace via --http.api on port 8545#20482

Merged
yperbasis merged 5 commits intomainfrom
lupin012/add_testing_namespace_to_rpc
Apr 13, 2026
Merged

rpc: expose testing_ namespace via --http.api on port 8545#20482
yperbasis merged 5 commits intomainfrom
lupin012/add_testing_namespace_to_rpc

Conversation

@lupin012
Copy link
Copy Markdown
Contributor

Replace the boolean --rpc.testing flag (engine-port-only, JWT-required) with the standard --http.api mechanism: adding "testing" to the list (e.g. --http.api eth,erigon,testing) registers testing_buildBlockV1 on the plain HTTP port (8545) without JWT, matching Geth's behaviour.

The namespace is disabled by default to prevent accidental production exposure. In standalone rpcdaemon mode the entry is silently skipped with a Warn log, since block assembly requires direct execution service access unavailable over gRPC.

Replace the boolean --rpc.testing flag (engine-port-only, JWT-required)
with the standard --http.api mechanism: adding "testing" to the list
(e.g. --http.api eth,erigon,testing) registers testing_buildBlockV1 on
the plain HTTP port (8545) without JWT, matching Geth's behaviour.

The namespace is disabled by default to prevent accidental production
exposure.  In standalone rpcdaemon mode the entry is silently skipped
with a Warn log, since block assembly requires direct execution service
access unavailable over gRPC.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lupin012 lupin012 marked this pull request as ready for review April 12, 2026 05:26
@yperbasis yperbasis added the RPC label Apr 12, 2026
Copy link
Copy Markdown
Member

@yperbasis yperbasis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it consistent with geth and don't register the testing_ namespace on the Engine API port.

lupin012 and others added 2 commits April 12, 2026 12:45
…port

Per reviewer request (yperbasis): align with Geth behaviour by keeping
testing_ RPC only on the plain HTTP port. The Engine API (JWT-auth) port
must not expose this namespace.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lupin012 lupin012 requested a review from yperbasis April 12, 2026 19:42
@yperbasis yperbasis added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit e2ab414 Apr 13, 2026
35 checks passed
@yperbasis yperbasis deleted the lupin012/add_testing_namespace_to_rpc branch April 13, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants