New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: adjust MaxGroupMemPrice #704
Conversation
Codecov Report
@@ Coverage Diff @@
## master #704 +/- ##
=======================================
Coverage 30.91% 30.91%
=======================================
Files 144 144
Lines 6916 6916
=======================================
Hits 2138 2138
Misses 4670 4670
Partials 108 108
Continue to review full report at Codecov.
|
validation/config.go
Outdated
|
||
if defaultConfig.MaxGroupMemPrice < minDefaultMaxGroupMemPrice { | ||
panic("invalid max group memory price") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not do this. i agree with the sentiment but we should handle it more gracefully. probably need to refactor the way this validation works - it was added in a rush to make a (2018) testnet more user-friendly.
just skip it for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Println
instead of panic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nah.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything still works fine with a lower value, right? it's just that the prices are lower than we'd like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk. makes sense
if total amount of memory in group less then 1G
calculatePriceRange will always return range 0..1.
fixes #640 ?
Signed-off-by: Artur Troian <troian.ap@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
if total amount of memory in group less then 1G
calculatePriceRange will always return range 0..1.
fixes #640 ?