Function reth_bench::valid_payload::call_new_payload

source ·
pub(crate) async fn call_new_payload<N, T, P: EngineApiValidWaitExt<N, T>>(
    provider: P,
    payload: ExecutionPayload,
    parent_beacon_block_root: Option<B256>,
    versioned_hashes: Vec<B256>,
) -> TransportResult<EngineApiMessageVersion>
Expand description

Calls the correct engine_newPayload method depending on the given [ExecutionPayload] and its versioned variant. Returns the [EngineApiMessageVersion] depending on the payload’s version.

§Panics

If the given payload is a V3 payload, but a parent beacon block root is provided as None.