mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore(payload): Move ExecutionPayloadValidator into reth-ethereum-payload-builder (#14751)
This commit is contained in:
@@ -37,7 +37,6 @@ use reth::{
|
||||
BuilderContext, FullNodeTypes, Node, NodeAdapter, NodeBuilder, NodeComponentsBuilder,
|
||||
},
|
||||
network::NetworkHandle,
|
||||
payload::ExecutionPayloadValidator,
|
||||
primitives::{Block, EthPrimitives, RecoveredBlock, SealedBlock, TransactionSigned},
|
||||
providers::{EthStorage, StateProviderFactory},
|
||||
rpc::{eth::EthApi, types::engine::ExecutionPayload},
|
||||
@@ -48,7 +47,7 @@ use reth::{
|
||||
use reth_basic_payload_builder::{BuildArguments, BuildOutcome, PayloadBuilder, PayloadConfig};
|
||||
use reth_chainspec::{Chain, ChainSpec, ChainSpecProvider};
|
||||
use reth_engine_local::payload::UnsupportedLocalAttributes;
|
||||
use reth_ethereum_payload_builder::EthereumBuilderConfig;
|
||||
use reth_ethereum_payload_builder::{EthereumBuilderConfig, EthereumExecutionPayloadValidator};
|
||||
use reth_node_api::{
|
||||
payload::{EngineApiMessageVersion, EngineObjectValidationError, PayloadOrAttributes},
|
||||
validate_version_specific_fields, AddOnsContext, EngineTypes, EngineValidator,
|
||||
@@ -182,13 +181,13 @@ impl EngineTypes for CustomEngineTypes {
|
||||
/// Custom engine validator
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CustomEngineValidator {
|
||||
inner: ExecutionPayloadValidator<ChainSpec>,
|
||||
inner: EthereumExecutionPayloadValidator<ChainSpec>,
|
||||
}
|
||||
|
||||
impl CustomEngineValidator {
|
||||
/// Instantiates a new validator.
|
||||
pub const fn new(chain_spec: Arc<ChainSpec>) -> Self {
|
||||
Self { inner: ExecutionPayloadValidator::new(chain_spec) }
|
||||
Self { inner: EthereumExecutionPayloadValidator::new(chain_spec) }
|
||||
}
|
||||
|
||||
/// Returns the chain spec used by the validator.
|
||||
|
||||
Reference in New Issue
Block a user