package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module takes care of choosing the denunciations that need to be applied at the end of a cycle. It depends on the flag ns_enable.

val enabled : State.t -> bool

Delayed_slashing is enabled iff ns_enable = true.

partition_slashes s cycle returns a pair (l1,l2) of lists of slashes, partitioned from the state.pending_slashes. l2 is the list of slashes to apply at the end of the given cycle, and l1 is the rest (which should usually replace state.pending_slashes)

OCaml

Innovation. Community. Security.