Skip to content

fix: validate HTTP(S) RPC network early and remove dead get_payloads#744

Open
radik878 wants to merge 1 commit intoa16z:masterfrom
radik878:fix/consensus-rpc-check-dead-code
Open

fix: validate HTTP(S) RPC network early and remove dead get_payloads#744
radik878 wants to merge 1 commit intoa16z:masterfrom
radik878:fix/consensus-rpc-check-dead-code

Conversation

@radik878
Copy link
Copy Markdown

@radik878 radik878 commented Dec 9, 2025

Add an early RPC network check in the consensus client for HTTP(S) endpoints to fail fast when the configured RPC does not match the expected chain. The check is gated by the URL scheme to avoid breaking file-based mocks used in tests. Also remove the unused Inner::get_payloads function and its associated import as dead code. This improves UX by surfacing misconfigurations earlier and reduces maintenance by eliminating unreferenced code.

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