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.
Traits§
- Engine
ApiValid Wait Ext - An extension trait for providers that implement the engine API, to wait for a VALID response.
Functions§
- 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_
new_ 🔒payload - Calls the correct
engine_newPayloadmethod depending on the given [ExecutionPayload] and its versioned variant. Returns the [EngineApiMessageVersion] depending on the payload’s version.