Closed debendraoli closed 5 days ago
Provides multiple strategies to chhose from for any chains (Currently only implemented for evm chains)
flowchart TD
A[Relayer] -->|Load Configs| C(Start)
C -->|Ws| D[Listen to events via websockets]
C -->|poll| E[sync missing blocks]
flowchart TD
A[Relayer] -->|Load Configs| C(Start)
C -->|poll| E[sync blocks every x seconds]
Redundancy strategies are only applicable for websocket fetching strategy and not for the RPC poll as the poll is costly,slower but deterministic.
flowchart TD
A[Relayer] -->|Load Configs| C(Start)
C -->|Ws| D[Listen to events via websockets]
C -->|poll| E[sync missing blocks]
D -->|rpc-verify| X{ws events?}
X --> |Yes| Y[do nothing]
X --> |No| Z{verify with rpc if \n events are empty}
Z --> |yes| M[return]
Z --> |no| N[process events\nreset ws]
N --> D
flowchart TD
A[Relayer] -->|Load Configs| C(Start)
C -->|Ws| D[Listen to events via websockets]
C -->|Ws| E[Listen to events via websockets]
C -->|Ws| F[Listen to events via websockets]
D --> |event| G[internal channel]
E --> |event| G[internal channel]
F --> |event| G[internal channel]
C -->|poll| Z[sync missing blocks]
G --> H{quorum reached ??}
H --> |No| I[add to cache \n increment counter]
H --> |yes| J[Forward to main relayer channel\nreset counter]
This will help to counter missed events.