Skip to content

Commit

Permalink
fix: max_proof_time should be 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Nov 19, 2024
1 parent 635f8f8 commit a569f2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sequencer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func SetDefaultDymintConfig(rlpCfg roller.RollappConfig) error {

hubKeysDir := filepath.Join(rlpCfg.Home, consts.ConfigDirName.HubKeys)
dymintCfg.Set("max_idle_time", "1h0m0s")
dymintCfg.Set("max_proof_time", "10s")
dymintCfg.Set("max_proof_time", "5s")

if rlpCfg.HubData.ID == consts.MockHubID {
dymintCfg.Set("settlement_layer", "mock")
Expand Down
19 changes: 6 additions & 13 deletions utils/dymint/dymint.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"time"

"github.com/BurntSushi/toml"
"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/utils/bash"
rollapputils "github.com/dymensionxyz/roller/utils/rollapp"
"github.com/pterm/pterm"

"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/utils/bash"
"github.com/dymensionxyz/roller/utils/config/tomlconfig"
rollapputils "github.com/dymensionxyz/roller/utils/rollapp"
"github.com/dymensionxyz/roller/utils/sequencer"
servicemanager "github.com/dymensionxyz/roller/utils/service_manager"
)
Expand Down Expand Up @@ -126,16 +126,9 @@ func UpdateDymintConfigForIBC(home string, t string, forceUpdate bool) error {
return err
}

if want < time.Minute*1 {
err = tomlconfig.UpdateFieldInFile(dymintPath, "max_proof_time", want.String())
if err != nil {
return err
}
} else {
err = tomlconfig.UpdateFieldInFile(dymintPath, "max_proof_time", "1m")
if err != nil {
return err
}
err = tomlconfig.UpdateFieldInFile(dymintPath, "max_proof_time", "5s")
if err != nil {
return err
}

if runtime.GOOS == "linux" {
Expand Down

0 comments on commit a569f2b

Please sign in to comment.