Proto: Consider past periods to decide the next commitment level
ParisB has demonstrated the Smart Rollup commitment logic is not resilient to commitment period constant changes, forcing us to release Octez 20.1 to activate ParisC. The underlying logic error is well explained in ParisC announcement, but in a nutshell, the reason can be summarized as follows: in ParisB, the new constants is used in place where the previous one should.
This patches addresses the root issue, but keeping track of past commitment periods (starting from ParisC).
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR