chore: relax EngineValidatorAddOn impl (#18052)

This commit is contained in:
Matthias Seitz
2025-08-25 21:13:25 +02:00
committed by GitHub
parent af57047654
commit dd4aa7cd2a
3 changed files with 9 additions and 4 deletions

View File

@@ -333,7 +333,8 @@ where
}
}
impl<N, EthB, PVB, EB, EVB> EngineValidatorAddOn<N> for EthereumAddOns<N, EthB, PVB, EB, EVB>
impl<N, EthB, PVB, EB, EVB, RpcMiddleware> EngineValidatorAddOn<N>
for EthereumAddOns<N, EthB, PVB, EB, EVB, RpcMiddleware>
where
N: FullNodeComponents<
Types: NodeTypes<
@@ -349,6 +350,7 @@ where
EVB: EngineValidatorBuilder<N>,
EthApiError: FromEvmError<N::Evm>,
EvmFactoryFor<N::Evm>: EvmFactory<Tx = TxEnv>,
RpcMiddleware: Send,
{
type ValidatorBuilder = EVB;

View File

@@ -1180,13 +1180,15 @@ pub trait EngineValidatorAddOn<Node: FullNodeComponents>: Send {
fn engine_validator_builder(&self) -> Self::ValidatorBuilder;
}
impl<N, EthB, PVB, EB, EVB> EngineValidatorAddOn<N> for RpcAddOns<N, EthB, PVB, EB, EVB>
impl<N, EthB, PVB, EB, EVB, RpcMiddleware> EngineValidatorAddOn<N>
for RpcAddOns<N, EthB, PVB, EB, EVB, RpcMiddleware>
where
N: FullNodeComponents,
EthB: EthApiBuilder<N>,
PVB: Send,
EB: EngineApiBuilder<N>,
EVB: EngineValidatorBuilder<N>,
RpcMiddleware: Send,
{
type ValidatorBuilder = EVB;

View File

@@ -620,14 +620,15 @@ where
}
}
impl<N, NetworkT, PVB, EB, EVB> EngineValidatorAddOn<N>
for OpAddOns<N, OpEthApiBuilder<NetworkT>, PVB, EB, EVB>
impl<N, NetworkT, PVB, EB, EVB, RpcMiddleware> EngineValidatorAddOn<N>
for OpAddOns<N, OpEthApiBuilder<NetworkT>, PVB, EB, EVB, RpcMiddleware>
where
N: FullNodeComponents,
OpEthApiBuilder<NetworkT>: EthApiBuilder<N>,
PVB: Send,
EB: EngineApiBuilder<N>,
EVB: EngineValidatorBuilder<N>,
RpcMiddleware: Send,
{
type ValidatorBuilder = EVB;