Skip to content

Commit

Permalink
Tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Jul 17, 2023
1 parent 694d11a commit 026ccbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/collator/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use moonbeam_rpc_debug::{Debug, DebugServer};
use moonbeam_rpc_trace::{Trace, TraceServer};
// TODO: get rid of this completely now that it's part of frontier?
#[cfg(feature = "evm-tracing")]
use moonbeam_rpc_txpool::{TxPool, TxPoolServer};
use moonbeam_rpc_txpool::{TxPool as MoonbeamTxPool, TxPoolServer};

use astar_primitives::*;

Expand Down Expand Up @@ -144,8 +144,8 @@ where
C: sc_client_api::BlockBackend<Block>,
C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Nonce>
+ pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>
+ ConvertTransactionRuntimeApi<Block>
+ EthereumRuntimeRPCApi<Block>
+ fp_rpc::ConvertTransactionRuntimeApi<Block>
+ fp_rpc::EthereumRuntimeRPCApi<Block>
+ BlockBuilder<Block>
+ moonbeam_rpc_primitives_debug::DebugRuntimeApi<Block>
+ moonbeam_rpc_primitives_txpool::TxPoolRuntimeApi<Block>,
Expand All @@ -161,7 +161,7 @@ where
let mut io = create_full_rpc(deps, subscription_task_executor, pubsub_notification_sinks)?;

if tracing_config.enable_txpool {
io.merge(TxPool::new(Arc::clone(&client), graph).into_rpc())?;
io.merge(MoonbeamTxPool::new(Arc::clone(&client), graph).into_rpc())?;
}

if let Some(trace_filter_requester) = tracing_config.tracing_requesters.trace {
Expand Down
2 changes: 1 addition & 1 deletion bin/collator/src/rpc/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct SpawnTasksParams<'a, B: BlockT, C, BE> {
pub task_manager: &'a TaskManager,
pub client: Arc<C>,
pub substrate_backend: Arc<BE>,
pub frontier_backend: Arc<fc_db::Backend<B>>,
pub frontier_backend: Arc<dyn fc_db::BackendReader<B> + Send + Sync>,
pub filter_pool: Option<FilterPool>,
pub overrides: Arc<OverrideHandle<B>>,
}
Expand Down

0 comments on commit 026ccbd

Please sign in to comment.