Skip to content

Commit 54e4b00

Browse files
authored
fix(vm): Do not require experimental VM config (#3270)
## What ❔ Uses default experimental VM config when initializing the main node. ## Why ❔ Currently, the experimental VM config is required in certain cases, which may lead to panics during node initialization. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`.
1 parent 726203b commit 54e4b00

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

core/bin/zksync_server/src/node_builder.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,11 @@ impl MainNodeBuilder {
325325
latest_values_cache_size: rpc_config.latest_values_cache_size() as u64,
326326
latest_values_max_block_lag: rpc_config.latest_values_max_block_lag(),
327327
};
328-
let vm_config = try_load_config!(self.configs.experimental_vm_config);
328+
let vm_config = self
329+
.configs
330+
.experimental_vm_config
331+
.clone()
332+
.unwrap_or_default();
329333

330334
// On main node we always use master pool sink.
331335
self.node.add_layer(MasterPoolSinkLayer);
@@ -597,7 +601,11 @@ impl MainNodeBuilder {
597601
}
598602

599603
fn add_vm_playground_layer(mut self) -> anyhow::Result<Self> {
600-
let vm_config = try_load_config!(self.configs.experimental_vm_config);
604+
let vm_config = self
605+
.configs
606+
.experimental_vm_config
607+
.clone()
608+
.unwrap_or_default();
601609
self.node.add_layer(VmPlaygroundLayer::new(
602610
vm_config.playground,
603611
self.genesis_config.l2_chain_id,

0 commit comments

Comments
 (0)