Enum BeaconEngineMessage
pub enum BeaconEngineMessage<Payload>where
Payload: PayloadTypes,
{
NewPayload {
payload: <Payload as PayloadTypes>::ExecutionData,
tx: Sender<Result<PayloadStatus, BeaconOnNewPayloadError>>,
},
RethNewPayload {
payload: <Payload as PayloadTypes>::ExecutionData,
wait_for_persistence: bool,
wait_for_caches: bool,
tx: Sender<Result<(PayloadStatus, NewPayloadTimings), BeaconOnNewPayloadError>>,
},
ForkchoiceUpdated {
state: ForkchoiceState,
payload_attrs: Option<<Payload as PayloadTypes>::PayloadAttributes>,
tx: Sender<Result<OnForkChoiceUpdated, RethError>>,
},
}Expand description
A message for the beacon engine from other components of the node (engine RPC API invoked by the consensus layer).
Message with new payload.
Fields
The execution payload received by Engine API.
The sender for returning payload status result.
Message with new payload used by reth_newPayload endpoint.
Supports independent control over waiting for persistence and cache locks before processing, providing unbiased timing measurements when enabled.
Returns detailed timing breakdown alongside the payload status.
Fields
The execution payload received by Engine API.
Whether to wait for in-flight persistence to complete before processing.
Whether to wait for execution cache and sparse trie locks before processing.
The sender for returning payload status result and timing breakdown.
Message with updated forkchoice state.
Fields
The updated forkchoice state.
The payload attributes for block building.
The sender for returning forkchoice updated result.
§
§
Causes self to use its Binary implementation when Debug-formatted.
§
Causes self to use its Display implementation when
Debug-formatted.
§
Causes self to use its LowerExp implementation when
Debug-formatted.
§
Causes self to use its LowerHex implementation when
Debug-formatted.
§
Causes self to use its Octal implementation when Debug-formatted.
§
Causes self to use its Pointer implementation when
Debug-formatted.
§
Causes self to use its UpperExp implementation when
Debug-formatted.
§
Causes self to use its UpperHex implementation when
Debug-formatted.
§
§
Available on crate feature propagate-header only.
Propagate a header from the request to the response. Read more
§
Available on crate feature add-extension only.
§
Available on crate feature map-request-body only.
Apply a transformation to the request body. Read more
§
Available on crate feature map-response-body only.
Apply a transformation to the response body. Read more
§
Available on crate features compression-br or compression-deflate or compression-gzip or compression-zstd only.
Compresses response bodies. Read more
§
Available on crate features decompression-br or decompression-deflate or decompression-gzip or decompression-zstd only.
Decompress response bodies. Read more
§
Available on crate feature trace only.
High level tracing that classifies responses using HTTP status codes. Read more
§
Available on crate feature trace only.
High level tracing that classifies responses using gRPC headers. Read more
§
Available on crate feature follow-redirect only.
Available on crate feature sensitive-headers only.
Available on crate feature sensitive-headers only.
Available on crate feature sensitive-headers only.
Available on crate feature set-header only.
Insert a header into the request, if the header is not already present. Read more
Available on crate feature set-header only.
Insert a header into the response, if the header is not already present. Read more
§
Available on crate feature request-id only.
Add request id header and extension, using x-request-id as the header name. Read more
§
Available on crate feature request-id only.
Propgate request ids from requests to responses. Read more
§
Available on crate feature request-id only.
Propgate request ids from requests to responses, using x-request-id as the header name. Read more
§
Available on crate feature catch-panic only.
Catch panics and convert them into 500 Internal Server responses. Read more
§
§
Calls .tap() only in debug builds, and is erased in release builds.
§
Calls .tap_mut() only in debug builds, and is erased in release
builds.
§
Calls .tap_borrow() only in debug builds, and is erased in release
builds.
§
Calls .tap_borrow_mut() only in debug builds, and is erased in release
builds.
§
Calls .tap_ref() only in debug builds, and is erased in release
builds.
§
Calls .tap_ref_mut() only in debug builds, and is erased in release
builds.
§
Calls .tap_deref() only in debug builds, and is erased in release
builds.
§
Calls .tap_deref_mut() only in debug builds, and is erased in release
builds.
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.