Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@HristoStaykov
Copy link
Contributor

@HristoStaykov HristoStaykov commented Oct 28, 2025

Summary

  • Websocket providers are promoted to first-class components by updating ProviderBuilder to use a resilient WS connector with configurable exponential backoff and reconnect metrics.
  • Reorg tracking is updated to use the same reconnection policy, removing one-off retry logic and ensuring polling continues while the next WS retry is scheduled.
  • New websocket_reconnect configuration options are added (with defaults and validation), provider tests are updated, new Prometheus counters are exposed, and the behavior is documented in README / Reorg.md.

Details

  • Introduces apps/sequencer/src/providers/ws.rs containing ResilientWsConnect, a shared WsReconnectPolicy, a metrics-hook trait, and unit tests that exercise the retry loop and backoff behavior.
  • The new connector is integrated into both the primary RpcProvider (including async-trait metrics recording) and the ReorgTracker, replacing custom backoff logic with the shared policy and state.
  • Adds WebsocketReconnectConfig in libs/config, threads it through the sequencer setup, and registers six new websocket reconnect/disconnect counters in ProviderMetrics.
  • Updates documentation (README, new Reorg.md) and configuration/test fixtures to describe the optional reconnect policy alongside the existing websocket URL.

@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from 28a13b3 to c303ebf Compare October 28, 2025 16:08
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from 218fcd1 to e0b2ded Compare October 28, 2025 16:08
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from c303ebf to 74f490b Compare October 28, 2025 16:15
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch 2 times, most recently from 4937161 to 3be98da Compare October 29, 2025 09:40
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from 74f490b to 14a1ce5 Compare October 29, 2025 09:40
@HristoStaykov HristoStaykov force-pushed the hstaykov/provider_support_for_ws branch from 14a1ce5 to 1a9f4ea Compare October 29, 2025 16:58
@HristoStaykov HristoStaykov force-pushed the hstaykov/web_socket_listener_rebased branch 2 times, most recently from 0b81e46 to 345a513 Compare October 30, 2025 10:13
@HristoStaykov HristoStaykov force-pushed the hstaykov/provider_support_for_ws branch from 1a9f4ea to 99edcd8 Compare October 30, 2025 10:13
@HristoStaykov HristoStaykov force-pushed the hstaykov/web_socket_listener_rebased branch from 345a513 to 4350aa7 Compare October 30, 2025 15:29
@HristoStaykov HristoStaykov force-pushed the hstaykov/provider_support_for_ws branch from 99edcd8 to 7694301 Compare October 30, 2025 15:29
@HristoStaykov HristoStaykov force-pushed the hstaykov/web_socket_listener_rebased branch from 4350aa7 to 90337b9 Compare October 30, 2025 16:15
@HristoStaykov HristoStaykov force-pushed the hstaykov/provider_support_for_ws branch from 7694301 to 0bcd71d Compare October 30, 2025 16:15
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from 90337b9 to 4d74144 Compare October 30, 2025 16:30
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch 2 times, most recently from 335ed07 to d2e9cb5 Compare October 30, 2025 16:34
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch 2 times, most recently from 2f90ac5 to d35a4cd Compare October 30, 2025 16:49
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from d2e9cb5 to f6f17cc Compare October 30, 2025 16:49
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from d35a4cd to c891f74 Compare November 7, 2025 12:45
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch 2 times, most recently from 18eaa51 to d2363b7 Compare November 7, 2025 12:50
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from c891f74 to 04a63c7 Compare November 7, 2025 12:50
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from d2363b7 to ecd4c67 Compare November 7, 2025 13:01
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from 04a63c7 to f447bbe Compare November 7, 2025 13:01
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from ecd4c67 to 7837127 Compare November 7, 2025 13:56
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from f447bbe to ae55b55 Compare November 7, 2025 13:56
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from 7837127 to 8291c8c Compare November 7, 2025 14:00
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from ae55b55 to 9e532f1 Compare November 7, 2025 14:00
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from 8291c8c to ffed254 Compare November 7, 2025 14:08
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch 2 times, most recently from 7e12e7a to 936c748 Compare November 7, 2025 14:16
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch 2 times, most recently from c0d5c01 to 018e185 Compare November 7, 2025 14:37
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch 2 times, most recently from 5558620 to 718693e Compare November 7, 2025 15:15
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from 018e185 to a6954bb Compare November 7, 2025 15:15
@reo101 reo101 force-pushed the hstaykov/web_socket_listener_rebased branch from 718693e to 660a9d6 Compare November 7, 2025 15:32
@reo101 reo101 force-pushed the hstaykov/provider_support_for_ws branch from a6954bb to 2f8e183 Compare November 7, 2025 15:32
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.