Module new_payload_fcu

Module new_payload_fcu 

Source
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 the reth_subscribePersistedBlock subscription, 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-fcu command
PersistenceSubscription 🔒
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.
PersistenceWaiter 🔒
Encapsulates the block waiting logic.

Constants§

PERSISTENCE_CHECKPOINT_TIMEOUT 🔒

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 target has been persisted.