Skip to content

Commit

Permalink
POS-15 Remove building Heimdall for each chain CR change some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcrevar committed Nov 4, 2021
1 parent 0f86b2c commit f11401f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions helper/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ var Logger logger.Logger
// GenesisDoc contains the genesis file
var GenesisDoc tmTypes.GenesisDoc

// keeps newSelectionAlgoHeight from network chain toml file
var newSelectionAlgoHeight int64 = 0

// Contracts
Expand Down Expand Up @@ -214,7 +213,7 @@ func InitHeimdallConfigWith(homeDir string, heimdallConfigFilePath string) {
cdc.MustUnmarshalBinaryBare(privVal.Key.PrivKey.Bytes(), &privObject)
cdc.MustUnmarshalBinaryBare(privObject.PubKey().Bytes(), &pubObject)

// get network chain form viper/cobra flag and set newSelectionAlgoHeight
// get chain from viper/cobra flag and set newSelectionAlgoHeight
chain := viper.GetString(ChainFlag)
if chain == "" {
chain = GetConfig().Chain
Expand Down Expand Up @@ -317,12 +316,12 @@ func GetAddress() []byte {
return GetPubKey().Address().Bytes()
}

// get all valid networks
// GetValidChains returns all the valid chains
func GetValidChains() []string {
return []string{"mainnet", "mumbai", "local"}
}

// Gets NewSelectionAlgoHeight
// GetNewSelectionAlgoHeight returns newSelectionAlgoHeight
func GetNewSelectionAlgoHeight() int64 {
return newSelectionAlgoHeight
}
Expand Down

0 comments on commit f11401f

Please sign in to comment.