Expand description
This is an extension trait for any provider that implements the engine API, to wait for a VALID response. This is useful for benchmarking, as it allows us to wait for a payload to be valid before sending additional calls.
Structsยง
- NewPayload
Timing ๐Breakdown - Server-side timing breakdown from
reth_newPayloadendpoint. - Reth
Payload ๐Status - Response from
reth_newPayloadendpoint, which includes server-measured latency.
Traitsยง
- Engine
ApiValid Wait Ext - An extension trait for providers that implement the engine API, to wait for a VALID response.
Functionsยง
- block_
to_ ๐new_ payload - Converts an RPC block into versioned engine API params and an [
ExecutionData]. - call_
forkchoice_ ๐updated - Calls the correct
engine_forkchoiceUpdatedmethod depending on the givenEngineApiMessageVersion, using the provided forkchoice state and payload attributes for the actual engine api message call. - call_
forkchoice_ ๐updated_ with_ reth - Calls either
reth_forkchoiceUpdatedor the standardengine_forkchoiceUpdated*depending onuse_reth. - call_
new_ ๐payload - Calls the correct
engine_newPayloadmethod depending on the given [ExecutionPayload] and its versioned variant. Returns theEngineApiMessageVersiondepending on the payloadโs version. - call_
new_ ๐payload_ with_ reth - Calls either
engine_newPayload*orreth_newPayloaddepending on whetherversionis provided. - payload_
to_ ๐new_ payload - Converts an execution payload and sidecar into versioned engine API params and an
[
ExecutionData].