Skip to content

Proto/AI: EMA threshold logic

Context

This MR adds the logic to set the activation of the adaptive inflation through the per-block vote:

  • at each block, we check if the EMA is above the 80% threshold,
  • if it is and the feature is not already set to launch, the launch cycle is set to a value of current_cycle + 8

This MR also adds a full integration test of the activation vote.

Stacked on !9057 (merged). See also !9068 (merged) for tests.

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.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Raphaël Cauderlier

Merge request reports

Loading