Skip to content

Commit

Permalink
Merge pull request #942 from maticnetwork/pos-1141
Browse files Browse the repository at this point in the history
heimdal init respects the chain flag
  • Loading branch information
temaniarpit27 committed Feb 1, 2023
2 parents 3327591 + e016482 commit 22fd83a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/heimdalld/service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ type initHeimdallConfig struct {
}

func heimdallInit(_ *server.Context, cdc *codec.Codec, initConfig *initHeimdallConfig, config *cfg.Config) error {
WriteDefaultHeimdallConfig(filepath.Join(config.RootDir, "config/heimdall-config.toml"), helper.GetDefaultHeimdallConfig())
conf := helper.GetDefaultHeimdallConfig()
conf.Chain = initConfig.chain
WriteDefaultHeimdallConfig(filepath.Join(config.RootDir, "config/heimdall-config.toml"), conf)

nodeID, valPubKey, _, err := InitializeNodeValidatorFiles(config)
if err != nil {
Expand Down

0 comments on commit 22fd83a

Please sign in to comment.