Skip to content

Comments

breaking: Require websocket URL for Ethereum endpoint#3184

Open
t00ts wants to merge 2 commits intot00ts/robust-l1-gas-pricesfrom
t00ts/eth-require-ws-url
Open

breaking: Require websocket URL for Ethereum endpoint#3184
t00ts wants to merge 2 commits intot00ts/robust-l1-gas-pricesfrom
t00ts/eth-require-ws-url

Conversation

@t00ts
Copy link
Contributor

@t00ts t00ts commented Jan 12, 2026

We're currently just switching the https:// scheme to wss:// on startup, but that doesn't mean that URL actually supports subscription-based endpoints.

Our EthereumClient requires ws internally (provider() uses WsConnect). Furthermore, our sync_and_listen task, which is critical (without it we can't verify L2 state against L1) won't even start if the provider does not support subscriptions.

Upon introducing L1 gas validation, this comes up once again as a potential issue.


This PR aims to address this issue in a very straightforward manner:

Pathfinder will no longer start if the URL provided isn't websocket-compatible.


This was part of #3179 but has been decoupled so we can merge at our convenience as it's a breaking change.

Also fixes #3181

@kkovaacs
Copy link
Contributor

@t00ts I think now would be a good time to merge this -- we're still in the beta phase with 0.22.0, so breaking changes are allowed on main.

@t00ts t00ts force-pushed the t00ts/eth-require-ws-url branch from acce894 to 859610f Compare February 19, 2026 07:58
@t00ts t00ts marked this pull request as ready for review February 19, 2026 07:58
@t00ts t00ts requested a review from a team as a code owner February 19, 2026 07:58
@t00ts t00ts force-pushed the t00ts/eth-require-ws-url branch from 859610f to 7bf15df Compare February 19, 2026 17:13
@t00ts t00ts changed the base branch from main to t00ts/robust-l1-gas-prices February 19, 2026 17:13
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.

fix: L1 sync task infinite retry loop on failure to subscribe

2 participants