Skip to content

Commit

Permalink
rename for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed Jun 25, 2024
1 parent 8be0f02 commit 4816538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/bin/zksync_server/src/node_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ impl MainNodeBuilder {
let merkle_tree_env_config = try_load_config!(self.configs.db_config).merkle_tree;
let operations_manager_env_config =
try_load_config!(self.configs.operations_manager_config);
let state_keeper_config = try_load_config!(self.configs.state_keeper_config);
let state_keeper_env_config = try_load_config!(self.configs.state_keeper_config);
let metadata_calculator_config = MetadataCalculatorConfig::for_main_node(
&merkle_tree_env_config,
&operations_manager_env_config,
&state_keeper_config,
&state_keeper_env_config,
);
let mut layer = MetadataCalculatorLayer::new(metadata_calculator_config);
if with_tree_api {
Expand Down
4 changes: 2 additions & 2 deletions core/node/node_framework/examples/main_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ impl MainNodeBuilder {
fn add_metadata_calculator_layer(mut self) -> anyhow::Result<Self> {
let merkle_tree_env_config = DBConfig::from_env()?.merkle_tree;
let operations_manager_env_config = OperationsManagerConfig::from_env()?;
let state_keeper_config = StateKeeperConfig::from_env()?;
let state_keeper_env_config = StateKeeperConfig::from_env()?;
let metadata_calculator_config = MetadataCalculatorConfig::for_main_node(
&merkle_tree_env_config,
&operations_manager_env_config,
&state_keeper_config,
&state_keeper_env_config,
);
self.node
.add_layer(MetadataCalculatorLayer::new(metadata_calculator_config));
Expand Down

0 comments on commit 4816538

Please sign in to comment.