base-org / pessimism

Detect real-time threats and events on OP Stack compatible blockchains
https://base-org.github.io/pessimism/
MIT License
1.57k stars 435 forks source link

Resilient Event Pipes #141

Closed epociask closed 1 year ago

epociask commented 1 year ago

Problem

If Pessimism is communicating with a node cluster behind a single URL, there could be issues where Pessimism is able to get a block from one of these P2P nodes but is non-deterministically failing when performing an event query lookup using the provided block hash. This could be due to nodes in a cluster syncing snapshots very slowly, resulting in load balanced queries for blocks on nodes that don't have them yet.

Problem Solution

Extend event_log.go to leverage a retry mechanism for handling event filter queries.