Module State_ai_flags.Autostake

This module takes care of autostaking when it is enabled

val enabled : Block.t -> State.t -> bool

Autostaking is enabled iff the flag autostaking_enable is true and AI is not activated (AI.enabled = false).

Runs the autostake operations at cycle end. Does nothing if enabled = false.