package tezos-protocol-020-PsParisC

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

This module maintains the storage related to forbidden delegates. It is responsible for maintaining the Storage.Tenderbake.Forbidden_delegates table.

is_forbidden ctxt delegate returns true if the given delegate is forbidden to bake or attest.

forbid ctxt delegate adds delegate to the set of forbidden delegates.

load ctxt reads from the storage the saved set of forbidden delegates and sets the raw context's in-memory cached value.

Unforbids all delegates who

  • have no pending denunciations (for which slashing has yet to be applied), and
  • have enough current frozen deposits to insure their previously computed baking rights for new_cycle.

This function should be called at the end of each cycle, after having applied any slashings that were scheduled for the same cycle end.

OCaml

Innovation. Community. Security.