Module State_ai_flags.NS

This module takes care of the new adaptive slashing mechanism.

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

It is enabled iff the flag ns_enable is set to true, and AI is also enabled.

Whatever the value of the flag is, this function returns the slashing value for a given double attestation