Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: Enable miner rpc in authrpc if enabled in http #491

Merged

Conversation

ferranbt
Copy link
Contributor

@ferranbt ferranbt commented Feb 5, 2025

This PR enables the miner RPC module on the AuthRPC endpoint when it's enabled for HTTP (--http.modules miner). This aligns with op-reth's approach.

This PR does not add any additional security exposure as AuthRPC endpoint has stricter access controls than HTTP.

A simpler alternative would be to enable this by default in DefaultAuthRpc. Let me know which approach you prefer.

Tests

Let me know if want me to add a test on node_test.go.

Additional context

This change is needed for Rollup-boost. Rollup-boost uses the AuthRPC endpoint to communicate with builders, so having the miner module enabled there simplifies its implementation.

Metadata

@ferranbt ferranbt requested a review from a team as a code owner February 5, 2025 17:10
@ferranbt ferranbt requested a review from sebastianst February 5, 2025 17:10
@protolambda protolambda changed the title Enable miner rpc in authrpc if enabled in http node: Enable miner rpc in authrpc if enabled in http Feb 7, 2025
@protolambda protolambda merged commit d0016ee into ethereum-optimism:optimism Feb 7, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants