-
Notifications
You must be signed in to change notification settings - Fork 13
Optimize and reduce storage and some iterations #953
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
Conversation
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.
what do you think of adding that same LastValSetUpdateHeight.Set to the BeforeValidatorSlashed hook as well ? So that it recalculates if a delegation is slashed ?
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.
yeah definitely should nice catch
* clear old reports from storage * Fix tests * Reduce the iteration that happens when recaculating stake during submitValue * Add tests plus change some reporter cache logic * add err handler * fix edit location for config.toml timeout_commit default value * Add upgrade handler * upgrade handler for v6.1.2 * error handling, msg validation * fix test and default commit timeout setting * Trigger global stake recalc on validator slashing; fix RemoveSelector missing recalc flag --------- Co-authored-by: danflo27 <florentinodc@outlook.com> (cherry picked from commit ed5cd57)
* clear old reports from storage * Fix tests * Reduce the iteration that happens when recaculating stake during submitValue * Add tests plus change some reporter cache logic * add err handler * fix edit location for config.toml timeout_commit default value * Add upgrade handler * upgrade handler for v6.1.2 * error handling, msg validation * fix test and default commit timeout setting * Trigger global stake recalc on validator slashing; fix RemoveSelector missing recalc flag --------- (cherry picked from commit ed5cd57) Co-authored-by: akrem <71235284+akremstudy@users.noreply.github.com> Co-authored-by: danflo27 <florentinodc@outlook.com>
Description
Related Issue
Fixes #
Type of Change
Testing
Checklist