Proto: Refactor `cycle_eras` usage
Context
This MR addresses issue #1275 (closed). In particular, it changes the order of element in cycle_eras
from "from oldest to newest eras" in the previous version, to "from newest to oldest eras" in the current version. Also, a new field is added first_cycle
to the cycle_era
record, storing the first cycle of an era. These two changes make the code cleaner and more clear.
The MR builds on top of !2862 (merged).
Manually testing the MR
In the same way as for !2531 (merged).
Checklist
-
Document the interface of any function added or modified. - N/A Document any change to the user interface.
- N/A Provide automatic testing: to be handled by #1291 (closed).
- N/A For new features and bug fixes, add an item in the appropriate changelog.
-
Select suitable reviewers using the Reviewers
field below.
Edited by Seb Mondet