mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
renamed OptimismNode to OpNode (#12338)
This commit is contained in:
@@ -51,12 +51,12 @@ impl NodePrimitives for OpPrimitives {
|
||||
/// Type configuration for a regular Optimism node.
|
||||
#[derive(Debug, Default, Clone)]
|
||||
#[non_exhaustive]
|
||||
pub struct OptimismNode {
|
||||
pub struct OpNode {
|
||||
/// Additional Optimism args
|
||||
pub args: RollupArgs,
|
||||
}
|
||||
|
||||
impl OptimismNode {
|
||||
impl OpNode {
|
||||
/// Creates a new instance of the Optimism node type.
|
||||
pub const fn new(args: RollupArgs) -> Self {
|
||||
Self { args }
|
||||
@@ -92,7 +92,7 @@ impl OptimismNode {
|
||||
}
|
||||
}
|
||||
|
||||
impl<N> Node<N> for OptimismNode
|
||||
impl<N> Node<N> for OpNode
|
||||
where
|
||||
N: FullNodeTypes<Types: NodeTypesWithEngine<Engine = OpEngineTypes, ChainSpec = OpChainSpec>>,
|
||||
{
|
||||
@@ -119,13 +119,13 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl NodeTypes for OptimismNode {
|
||||
impl NodeTypes for OpNode {
|
||||
type Primitives = OpPrimitives;
|
||||
type ChainSpec = OpChainSpec;
|
||||
type StateCommitment = MerklePatriciaTrie;
|
||||
}
|
||||
|
||||
impl NodeTypesWithEngine for OptimismNode {
|
||||
impl NodeTypesWithEngine for OpNode {
|
||||
type Engine = OpEngineTypes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user