Skip to content

fix(ethereum): add consensus_rpc fallback cascade; error on missing execution_rpc#709

Open
sashass1315 wants to merge 1 commit intoa16z:masterfrom
sashass1315:fix/ethereum-builder-consensus
Open

fix(ethereum): add consensus_rpc fallback cascade; error on missing execution_rpc#709
sashass1315 wants to merge 1 commit intoa16z:masterfrom
sashass1315:fix/ethereum-builder-consensus

Conversation

@sashass1315
Copy link
Copy Markdown

Problem: When only network was provided (no explicit consensus_rpc or full config), the builder ignored base_config.consensus_rpc and panicked via expect, despite networks supplying default consensus endpoints. Additionally, in the non-verifiable API path, the code unwrapped execution_rpc, causing a panic if it was missing, instead of returning a clear configuration error.
Why these changes are needed: The builder should honor network defaults and never panic in library code for expected misconfigurations. Using base_config.consensus_rpc as a fallback aligns with the network presets and documentation, and returning an explicit error for missing execution_rpc (when verifiable_api is not set) provides a clear, recoverable signal to callers.

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.

1 participant