Skip to content

Commit

Permalink
fix: handle mock da in configuration update
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jul 19, 2024
1 parent f5c30a8 commit 94c93d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sequencer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 94c93d8

Please sign in to comment.