Skip to content

Commit

Permalink
fix: adjust MaxGroupMemPrice (#704)
Browse files Browse the repository at this point in the history
if total amount of memory in group less then 1G
calculatePriceRange will always return range 0..1.

fixes #640
  • Loading branch information
troian committed Jun 24, 2020
1 parent 8d399ba commit ed2ce2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation/config.go
Expand Up @@ -26,7 +26,7 @@ type ValConfig struct {
MaxGroupStorage int64 `env:"AKASH_MAX_GROUP_STORAGE" envDefault:"5368709120"` // 5Gi

MinGroupMemPrice int64 `env:"AKASH_MEM_PRICE_MIN" envDefault:"50"`
MaxGroupMemPrice int64 `env:"AKASH_MEM_PRICE_MAX" envDefault:"150"`
MaxGroupMemPrice int64 `env:"AKASH_MEM_PRICE_MAX" envDefault:"1048576"`
}

var defaultConfig = ValConfig{}
Expand Down

0 comments on commit ed2ce2d

Please sign in to comment.