Skip to content
1 change: 1 addition & 0 deletions crates/node/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub mod handler;
pub mod migrations;
pub mod participants;
pub mod real;
pub mod recent_transactions;
pub mod stats;
pub mod tee;
pub mod tx_sender;
Expand Down
3 changes: 3 additions & 0 deletions crates/node/src/indexer/real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::config::RespondConfig;
#[cfg(feature = "network-hardship-simulation")]
use crate::config::load_listening_blocks_file;
use crate::indexer::configs::IndexerConfigExt;
use crate::indexer::recent_transactions::RecentTransactions;
use crate::indexer::tee::{
monitor_allowed_docker_images, monitor_allowed_foreign_chain_providers,
monitor_allowed_launcher_compose_hashes, monitor_tee_accounts,
Expand Down Expand Up @@ -60,6 +61,7 @@ pub fn spawn_real_indexer(
migration_state_sender: watch::Sender<(u64, ContractMigrationInfo)>,
tls_public_key: VerifyingKey,
foreign_chains: mpc_node_config::ForeignChainsConfig,
recent_transactions: Arc<std::sync::Mutex<RecentTransactions>>,
) -> IndexerAPI<impl TransactionSender, RealForeignChainPolicyReader> {
let (contract_state_sender_oneshot, contract_state_receiver_oneshot) = oneshot::channel();
let (migration_info_sender_oneshot, migration_info_receiver_oneshot) = oneshot::channel();
Expand Down Expand Up @@ -115,6 +117,7 @@ pub fn spawn_real_indexer(
account_secret_key.clone(),
respond_config_clone,
Arc::clone(&indexer_state),
recent_transactions,
);

let Ok(txn_sender) = txn_sender_result else {
Expand Down
Loading
Loading