mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-06 04:55:00 -05:00
feat(rpc): relax VaidationApi and EngineApi (#13241)
This commit is contained in:
@@ -238,7 +238,12 @@ impl<N: FullNodeComponents<Types: NodeTypes<Primitives = OpPrimitives>>> OpAddOn
|
||||
impl<N> NodeAddOns<N> for OpAddOns<N>
|
||||
where
|
||||
N: FullNodeComponents<
|
||||
Types: NodeTypes<ChainSpec = OpChainSpec, Primitives = OpPrimitives, Storage = OpStorage>,
|
||||
Types: NodeTypesWithEngine<
|
||||
ChainSpec = OpChainSpec,
|
||||
Primitives = OpPrimitives,
|
||||
Storage = OpStorage,
|
||||
Engine = OpEngineTypes,
|
||||
>,
|
||||
>,
|
||||
OpEngineValidator: EngineValidator<<N::Types as NodeTypesWithEngine>::Engine>,
|
||||
{
|
||||
@@ -283,7 +288,12 @@ where
|
||||
impl<N> RethRpcAddOns<N> for OpAddOns<N>
|
||||
where
|
||||
N: FullNodeComponents<
|
||||
Types: NodeTypes<ChainSpec = OpChainSpec, Primitives = OpPrimitives, Storage = OpStorage>,
|
||||
Types: NodeTypesWithEngine<
|
||||
ChainSpec = OpChainSpec,
|
||||
Primitives = OpPrimitives,
|
||||
Storage = OpStorage,
|
||||
Engine = OpEngineTypes,
|
||||
>,
|
||||
>,
|
||||
OpEngineValidator: EngineValidator<<N::Types as NodeTypesWithEngine>::Engine>,
|
||||
{
|
||||
@@ -296,8 +306,13 @@ where
|
||||
|
||||
impl<N> EngineValidatorAddOn<N> for OpAddOns<N>
|
||||
where
|
||||
N: FullNodeComponents<Types: NodeTypes<ChainSpec = OpChainSpec>>,
|
||||
OpEngineValidator: EngineValidator<<N::Types as NodeTypesWithEngine>::Engine>,
|
||||
N: FullNodeComponents<
|
||||
Types: NodeTypesWithEngine<
|
||||
ChainSpec = OpChainSpec,
|
||||
Primitives = OpPrimitives,
|
||||
Engine = OpEngineTypes,
|
||||
>,
|
||||
>,
|
||||
{
|
||||
type Validator = OpEngineValidator;
|
||||
|
||||
@@ -674,9 +689,12 @@ pub struct OpEngineValidatorBuilder;
|
||||
|
||||
impl<Node, Types> EngineValidatorBuilder<Node> for OpEngineValidatorBuilder
|
||||
where
|
||||
Types: NodeTypesWithEngine<ChainSpec = OpChainSpec>,
|
||||
Types: NodeTypesWithEngine<
|
||||
ChainSpec = OpChainSpec,
|
||||
Primitives = OpPrimitives,
|
||||
Engine = OpEngineTypes,
|
||||
>,
|
||||
Node: FullNodeComponents<Types = Types>,
|
||||
OpEngineValidator: EngineValidator<Types::Engine>,
|
||||
{
|
||||
type Validator = OpEngineValidator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user