Skip to content

Commit

Permalink
Fix primary network override for minimum healthy stake (ava-labs#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-kim authored Oct 13, 2022
1 parent 9cb5b46 commit 600c2cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,6 @@ func GetNodeConfig(v *viper.Viper, buildDir string) (node.Config, error) {
constants.PrimaryNetworkID: calcMinConnectedStake(nodeConfig.ConsensusParams.Parameters),
}

nodeConfig.MinPercentConnectedStakeHealthy = make(map[ids.ID]float64)
for subnetID, config := range subnetConfigs {
nodeConfig.MinPercentConnectedStakeHealthy[subnetID] = calcMinConnectedStake(config.ConsensusParameters.Parameters)
}
Expand Down

0 comments on commit 600c2cf

Please sign in to comment.