Proto: differentiated inactivity tolerance
Depends on !18946 (merged)
The following will be done in another MRs:
- update the documentation on octez.tezos.com
- add more tests
What
How
The parametric constant tolerated_inactivity_period is replaced by three constants:
-
tolerated_inactivity_period_low: low period length (in cycles), for baker for which we have a lowest tolerance because their share of the stake is above the threshold -
tolerated_inactivity_period_high: high period length (in cycles), for baker for which we have a highest tolerance because their share of the stake is below the threshold -
tolerated_inactivity_period_threshold: staking ratio threshold, in per thousand
At the time we update the deactivation cycle, we look at the staking rights distribution used for the current cycle, and choose the tolerance accordingly.
For a delegate that registers, we initially set a low tolerance (plus the usual consensus_rights_delay) as we have no selected staking rights to look at.
Manually testing the MR
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
Edited by Marina Polubelova