mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(engine): Op engine capabilities (#14733)
Co-authored-by: Ishika Choudhury <117741714+Rimeeeeee@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
//! RPC component builder
|
||||
|
||||
use reth_optimism_rpc::engine::OP_CAPABILITIES;
|
||||
pub use reth_optimism_rpc::OpEngineApi;
|
||||
|
||||
use alloy_rpc_types_engine::ExecutionData;
|
||||
@@ -34,7 +35,7 @@ where
|
||||
>;
|
||||
|
||||
async fn build_engine_api(self, ctx: &AddOnsContext<'_, N>) -> eyre::Result<Self::EngineApi> {
|
||||
let inner = self.inner.build_engine_api(ctx).await?;
|
||||
let inner = self.inner.capabilities(OP_CAPABILITIES).build_engine_api(ctx).await?;
|
||||
|
||||
Ok(OpEngineApi::new(inner))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user