dipdup-io / dipdup

Modular framework for creating selective indexers and featureful backends for dapps
https://dipdup.io
MIT License
97 stars 52 forks source link

Some EVM nodes don't work in realtime mode #953

Open droserasprout opened 8 months ago

droserasprout commented 8 months ago

See EVM Networks page in docs.

scottincrypto commented 5 months ago

Workaround for this is to remove the ws_url from the node datasource config. It works OK with just the rpc URL configured.

droserasprout commented 5 months ago

Yeah, some node providers just don't expose the WS endpoint, I don't know why. Maybe there's no bug on our end. WebSocket connection is only needed to save some RPS and reduce latency a bit. I'll keep this ticket open until all this stuff is documented.

scottincrypto commented 5 months ago

Correct, some don't expose it. In my tests, I used Alchemy which does provide WS endpoints and found that I couldn't get any events to fire in real-time mode. Dipdup appears to be using the WS endpoints from what I can gather.