0g-chain/cmd/kava/main.go
Ruaridh 573590a229
Fix unsafe-reset-all command (#1238)
* hack to set tendermint config correctly

* Revert "hack to set tendermint config correctly"

This reverts commit d34150ab934ab018cc3e95ea9398f098c09e0c8e.

* update cosmos-sdk to include env prefix fix
2022-05-04 18:05:07 -06:00

26 lines
433 B
Go

package main
import (
"os"
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/kava-labs/kava/app"
"github.com/kava-labs/kava/cmd/kava/cmd"
)
func main() {
rootCmd := cmd.NewRootCmd()
if err := svrcmd.Execute(rootCmd, cmd.EnvPrefix, app.DefaultNodeHome); err != nil {
switch e := err.(type) {
case server.ErrorCode:
os.Exit(e.Code)
default:
os.Exit(1)
}
}
}