From 5ad83bba4fc6b390ff22fb0ca9d952b174646204 Mon Sep 17 00:00:00 2001 From: Gianbelinche <39842759+gianbelinche@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:23:49 -0300 Subject: [PATCH] Uncomment validium config checks --- core/bin/zksync_server/src/node_builder.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/bin/zksync_server/src/node_builder.rs b/core/bin/zksync_server/src/node_builder.rs index 575da7b2b90..19079aeadc6 100644 --- a/core/bin/zksync_server/src/node_builder.rs +++ b/core/bin/zksync_server/src/node_builder.rs @@ -527,13 +527,13 @@ impl MainNodeBuilder { } fn add_da_dispatcher_layer(mut self) -> anyhow::Result { - // let eth_sender_config = try_load_config!(self.configs.eth); - // if let Some(sender_config) = eth_sender_config.sender { - // if sender_config.pubdata_sending_mode != PubdataSendingMode::Custom { - // tracing::warn!("DA dispatcher is enabled, but the pubdata sending mode is not `Custom`. DA dispatcher will not be started."); - // return Ok(self); - // } - // } + let eth_sender_config = try_load_config!(self.configs.eth); + if let Some(sender_config) = eth_sender_config.sender { + if sender_config.pubdata_sending_mode != PubdataSendingMode::Custom { + tracing::warn!("DA dispatcher is enabled, but the pubdata sending mode is not `Custom`. DA dispatcher will not be started."); + return Ok(self); + } + } let state_keeper_config = try_load_config!(self.configs.state_keeper_config); let da_config = try_load_config!(self.configs.da_dispatcher_config);