Expand description
Runs the reth bench command, calling first newPayload for each block, then calling
forkchoiceUpdated.
Supports configurable waiting behavior:
--wait-time: Fixed sleep interval between blocks.--wait-for-persistence: Waits for every Nth block to be persisted using thereth_subscribePersistedBlocksubscription, where N matches the engine’s persistence threshold. This ensures the benchmark doesn’t outpace persistence.
Both options can be used together or independently.
Structs§
- Command
reth benchmark new-payload-fcucommand- Persistence
Subscription 🔒 - Wrapper that keeps both the subscription stream and the underlying provider alive. The provider must be kept alive for the subscription to continue receiving events.
- Persistence
Waiter 🔒 - Encapsulates the block waiting logic.
Constants§
Functions§
- engine_
url_ 🔒to_ ws_ url - Converts an engine API URL to the default RPC websocket URL.
- wait_
for_ 🔒persistence - Waits until the persistence subscription reports that
targethas been persisted.