Skip to content

Commit

Permalink
chore: add quality of life improvements (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs authored Nov 25, 2024
1 parent 288be37 commit 377e0f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/eibc/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ func updateEibcConfig(eibcConfigPath string, hd consts.HubData) error {
updates := map[string]interface{}{
"node_address": hd.RpcUrl,
"order_polling.indexer_url": consts.DefaultIndexer,
"order_polling.enabled": true,
"operator.account_name": consts.KeysIds.Eibc,
"gas.fees": "4000000000000000adym",
// "rollapps.example_1234-1": nil,
Expand Down
7 changes: 5 additions & 2 deletions utils/dymint/dymint.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func UpdateDymintConfigForIBC(home string, t string, forceUpdate bool) error {
return err
}

spin, _ := pterm.DefaultSpinner.Start("restarting rollapp")
if runtime.GOOS == "linux" {
err := servicemanager.RestartSystemdService("rollapp")
if err != nil {
Expand All @@ -147,10 +148,10 @@ func UpdateDymintConfigForIBC(home string, t string, forceUpdate bool) error {
", only linux and darwin are supported",
)
}

spin.Success("restart successful")
} else {
pterm.Info.Println("block time settings already up to date")
pterm.Info.Println("restarting rollapp process to ensure correct block time is applied")
spin, _ := pterm.DefaultSpinner.Start("restarting rollapp process to ensure correct block time is applied")
if runtime.GOOS == "linux" {
err = servicemanager.RestartSystemdService("rollapp")
if err != nil {
Expand All @@ -167,6 +168,8 @@ func UpdateDymintConfigForIBC(home string, t string, forceUpdate bool) error {
", only linux and darwin are supported",
)
}
spin.Success("restart successful")

WaitForHealthyRollApp("http://localhost:26657/health")
}

Expand Down

0 comments on commit 377e0f0

Please sign in to comment.