-
Notifications
You must be signed in to change notification settings - Fork 39
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
Implement slashingRate related APIs #159
Conversation
goldworm-icon
commented
Aug 3, 2023
- Introduce RevisionPreIISS4(23)
- Implement setSlashingRate() and getSlashingRate()
- Refactor icmodule/penalty.go
Codecov Report
@@ Coverage Diff @@
## iiss4 #159 +/- ##
========================================
Coverage ? 45.17%
========================================
Files ? 360
Lines ? 56958
Branches ? 0
========================================
Hits ? 25732
Misses ? 28872
Partials ? 2354 |
} | ||
rates[name] = icmodule.Rate(value.Int64()) | ||
} | ||
return es.SetSlashingRates(s.newCallContext(s.cc), rates) |
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.
without event?
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.
Good point!!
…lashingRate APIs in ChainScore after RevisonPreIISS4 * setSlashingRates will supersede them
* Reinforce parameter validation * Record SlashingRateChangedV2(str,int) eventLogs