chore: require enginetypes 'static (#9645)

This commit is contained in:
Matthias Seitz
2024-07-19 15:44:44 +02:00
committed by GitHub
parent ccb16dc071
commit f8812e2aa5
10 changed files with 16 additions and 15 deletions

View File

@@ -27,6 +27,7 @@ pub trait EngineTypes:
+ TryInto<Self::ExecutionPayloadV4>,
> + DeserializeOwned
+ Serialize
+ 'static
{
/// Execution Payload V1 type.
type ExecutionPayloadV1: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static;

View File

@@ -294,7 +294,7 @@ impl<P, E, T> EngineApiTreeHandlerImpl<P, E, T>
where
P: BlockReader + StateProviderFactory + Clone + 'static,
E: BlockExecutorProvider,
T: EngineTypes + 'static,
T: EngineTypes,
{
#[allow(clippy::too_many_arguments)]
pub fn new(
@@ -765,7 +765,7 @@ impl<P, E, T> EngineApiTreeHandler for EngineApiTreeHandlerImpl<P, E, T>
where
P: BlockReader + StateProviderFactory + Clone + 'static,
E: BlockExecutorProvider,
T: EngineTypes + 'static,
T: EngineTypes,
{
type Engine = T;