diff --git a/crates/starknet_sequencer_node/src/clients.rs b/crates/starknet_sequencer_node/src/clients.rs index 084acf25db..9c92dac9d3 100644 --- a/crates/starknet_sequencer_node/src/clients.rs +++ b/crates/starknet_sequencer_node/src/clients.rs @@ -101,19 +101,37 @@ impl SequencerNodeClients { get_shared_client!(self, batcher_client) } + pub fn get_batcher_client(&self) -> Option<&Client> { + self.batcher_client.as_ref() + } + pub fn get_mempool_shared_client(&self) -> Option { get_shared_client!(self, mempool_client) } + pub fn get_mempool_client(&self) -> Option<&Client> { + self.mempool_client.as_ref() + } + pub fn get_gateway_shared_client(&self) -> Option { get_shared_client!(self, gateway_client) } + pub fn get_gateway_client(&self) -> Option<&Client> { + self.gateway_client.as_ref() + } + pub fn get_mempool_p2p_propagator_shared_client( &self, ) -> Option { get_shared_client!(self, mempool_p2p_propagator_client) } + + pub fn get_mempool_p2p_propagator_client( + &self, + ) -> Option<&Client> { + self.mempool_p2p_propagator_client.as_ref() + } } /// A macro for creating a component client, determined by the component's execution mode. Returns a