You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 14, 2025. It is now read-only.
- Add a new config option `EVM.NodePool.NewHeadsPollInterval` (0 by default indicate disabled), which is an interval for polling new block periodically using http client rather than subscribe to ws feed.
7
+
- Updated new head handler for polling new head over http, and register the subscription in node lifecycle logic.
8
+
- If the polling new heads is enabled, WS new heads subscription will be replaced with the new http based polling.
9
+
10
+
Note: There will be another PR for making WS URL optional with some extra condition.
Adding feature flag for `LogBroadcaster` called `LogBroadcasterEnabled`, which is `true` by default to support backwards compatibility.
6
+
Adding `LogBroadcasterEnabled` allows certain chains to completely disable the `LogBroadcaster` feature, which is an old feature (getting replaced by logPoller) that only few products are using it:
- register polling subscription to avoid subscription leaking when rpc client gets closed.
6
+
- add a temporary special treatment for SubscribeNewHead before we replace it with SubscribeToHeads. Add a goroutine that forwards new head from poller to caller channel.
7
+
- fix a deadlock in poller, by using a new lock for subs slice in rpc client.
0 commit comments