reth::payload::test_utils

Function spawn_test_payload_service

Source
pub fn spawn_test_payload_service<T>() -> PayloadBuilderHandle<T>
where T: PayloadTypes<PayloadBuilderAttributes = EthPayloadBuilderAttributes, BuiltPayload = EthBuiltPayload> + 'static,
Available on crate feature test-utils only.
Expand description

Creates a new PayloadBuilderService for testing purposes and spawns it in the background.