From 94c93d81d2a30c64e27cd6f610aab2834bc2ef54 Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Fri, 19 Jul 2024 13:25:49 +0300 Subject: [PATCH] fix: handle mock da in configuration update --- sequencer/config.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sequencer/config.go b/sequencer/config.go index da5427e4..85f5643e 100644 --- a/sequencer/config.go +++ b/sequencer/config.go @@ -28,7 +28,13 @@ func SetDefaultDymintConfig(rlpCfg config.RollappConfig) error { hubKeysDir := filepath.Join(rlpCfg.Home, consts.ConfigDirName.HubKeys) dymintCfg.Set("max_idle_time", "1h0m0s") dymintCfg.Set("max_proof_time", "10s") - dymintCfg.Set("settlement_layer", "mock") + + if rlpCfg.HubData.ID == consts.MockHubID { + dymintCfg.Set("settlement_layer", "mock") + } else { + dymintCfg.Set("settlement_layer", "dymension") + } + dymintCfg.Set("block_batch_size", "500") dymintCfg.Set("block_time", "0.2s") dymintCfg.Set("batch_submit_max_time", "100s")