-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial updates to integrate baseline bug fix * moving ramp duration to be returned by call to total_power rather than a separate function * updated to use correct variable name * changing type to i64 so that the ramp can be preplanned * updated state to store epoch at which upgrade will happen, and the duration, and refactored other variables to set the correct inputs for the pledge function * fixed syntax and type errors indicated by running make check * fixed make check errors * fixing rustfmt errors * fixing additional rustfmt errors * fixed integration test errors * write three tests, fix bug in pledge calculation * remove unnecessary TODO items * remote yet another unnecessary TODO item * document the two new fields in power state * test pre-ramp, test early on-ramp * check first step on ramp * use if-then-else rather than min/max * avoid a division when merging baseline and simple pledges * validate pledges 1 epoch around FIP0081 activation * rename gamme constant, reword comments * test more FIP0081 cases * move tests to separate file * correct test comments --------- Co-authored-by: David Himmelstrup <[email protected]> Co-authored-by: lemmih <[email protected]>
- Loading branch information
1 parent
76b4765
commit 01a05fc
Showing
12 changed files
with
318 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.