Skip to content

fix(blocklock,randomness): replace wonky block poller with custom stream#261

Merged
AnomalRoil merged 1 commit into
mainfrom
fix/blocklock-randomness/polling
Jan 16, 2026
Merged

fix(blocklock,randomness): replace wonky block poller with custom stream#261
AnomalRoil merged 1 commit into
mainfrom
fix/blocklock-randomness/polling

Conversation

@azixus
Copy link
Copy Markdown
Contributor

@azixus azixus commented Dec 23, 2025

There seems to be an issue when using alloy's polling mechanism when fetching blocks on multiple agents sharing the same rpc provider:

{"timestamp":"2025-12-23T15:38:13.917317Z","level":"ERROR","fields":{"message":"failed to poll","err":"server returned an error response: error code -32000: filter not found"},"target":"alloy_rpc_client::poller"}
{"timestamp":"2025-12-23T15:38:13.917360Z","level":"WARN","fields":{"message":"server has dropped the filter, stopping poller"},"target":"alloy_rpc_client::poller"}

Per the log, it might be related to the use of the eth_*filter* RPC methods. This PR replaces it by using our own ticker + eth_blockNumber RPC call.

Copy link
Copy Markdown
Member

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AnomalRoil AnomalRoil merged commit 123683b into main Jan 16, 2026
32 checks passed
@AnomalRoil AnomalRoil deleted the fix/blocklock-randomness/polling branch January 16, 2026 14:07
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