From 7a3e6d83196c56e7ba0ed1568e48639d39e84f81 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 19 Dec 2024 15:16:08 +0100 Subject: [PATCH] chore: use op feature for engine local (#13454) --- crates/engine/local/Cargo.toml | 6 ++---- crates/engine/local/src/payload.rs | 2 +- crates/optimism/node/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/engine/local/Cargo.toml b/crates/engine/local/Cargo.toml index b3ad169e3189..7e29dbf9af0e 100644 --- a/crates/engine/local/Cargo.toml +++ b/crates/engine/local/Cargo.toml @@ -48,8 +48,6 @@ op-alloy-rpc-types-engine = { workspace = true, optional = true } workspace = true [features] -optimism = [ - "op-alloy-rpc-types-engine", - "reth-beacon-consensus/optimism", - "reth-provider/optimism", +op = [ + "dep:op-alloy-rpc-types-engine" ] diff --git a/crates/engine/local/src/payload.rs b/crates/engine/local/src/payload.rs index 6355a2a00af2..090b4d910b31 100644 --- a/crates/engine/local/src/payload.rs +++ b/crates/engine/local/src/payload.rs @@ -45,7 +45,7 @@ where } } -#[cfg(feature = "optimism")] +#[cfg(feature = "op")] impl PayloadAttributesBuilder for LocalPayloadAttributesBuilder where diff --git a/crates/optimism/node/Cargo.toml b/crates/optimism/node/Cargo.toml index 3c3ebb57039f..ee6c969fd390 100644 --- a/crates/optimism/node/Cargo.toml +++ b/crates/optimism/node/Cargo.toml @@ -93,7 +93,7 @@ optimism = [ "reth-beacon-consensus/optimism", "revm/optimism", "reth-optimism-rpc/optimism", - "reth-engine-local/optimism", + "reth-engine-local/op", "reth-optimism-consensus/optimism", "reth-db/optimism", "reth-optimism-node/optimism",