ethereum-optimism / ethereum-optimism/optimism

op-sync-tester: Customizable Test Sessions (Fault Injection & Latency)

Open
#17,045 0 comments 0 reactions 0 assignees View on GitHub
A-op-sync-tester
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 38m
Merged PRs (30d)
164

Description

While initializing the sync tester session, we may initialize session with the RPCs to return faulty response or injecting artificial latency.

For example, initializing with
```
/chain/{chain_id}/synctest/{session_id}?latest=100&safe=95&finalized=90&fault=90&latency=0.5
```

means all the RPCs return fault response in the probability of 90%, with extra latency by 0.5 second added.

Heavily inspired from the `ChaoticEngine`:
https://github.com/ethereum-optimism/optimism/blob/fc66fbed47fdc2cb15bc0c108c509029645e2f04/op-node/rollup/sequencing/sequencer_chaos_test.go#L28-L50

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.