diff --git a/node/service/src/rpc.rs b/node/service/src/rpc.rs index 41fb0ade78..735a2d64d0 100644 --- a/node/service/src/rpc.rs +++ b/node/service/src/rpc.rs @@ -44,6 +44,7 @@ use sc_client_api::{ use sc_consensus_manual_seal::rpc::{EngineCommand, ManualSeal, ManualSealApiServer}; use sc_network::NetworkService; use sc_rpc::SubscriptionTaskExecutor; +use sc_rpc::dev::{Dev, DevApiServer}; use sc_rpc_api::DenyUnsafe; use sc_service::TaskManager; use sc_transaction_pool::{ChainApi, Pool}; @@ -172,6 +173,7 @@ where BE::State: StateBackend, BE::Blockchain: BlockchainBackend, C: ProvideRuntimeApi + StorageProvider + AuxStore, + C: sc_client_api::BlockBackend, C: BlockchainEvents, C: HeaderBackend + HeaderMetadata + 'static, C: CallApiAt, @@ -309,6 +311,8 @@ where )?; } + io.merge(Dev::new(Arc::clone(&client), deny_unsafe).into_rpc())?; + if let Some(tracing_config) = maybe_tracing_config { if let Some(trace_filter_requester) = tracing_config.tracing_requesters.trace { io.merge(