package tezos-protocol-014-PtKathma

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-014-PtKathma.raw/Tezos_raw_protocol_014_PtKathma/Dal_slot_storage/index.html

Module Tezos_raw_protocol_014_PtKathma.Dal_slot_storageSource

Storage management of slots for the data-availability layer.

Overview

This module is an interface for the slot storage for the layer 1.

Depending on the current level of the context and the lag (a constant given by the context), the status of the slot may differ:

  • For every level in the interval current_level; current_level + lag -1 the slot is Pending. This means a slot header was proposed but was not declared available yet.
  • For every level above current_level + lag, the slot may be confirmed. For any slot confirmed by the protocol (i.e. indices returned by finalize_pending_slots), subscribers of the DAL should take into account the corresponding slots.
  • For every level below current_level - lag, there should not be any slot in the storage.

find ctxt level returns Some slots where slots are pending slots at level level. None is returned if no slot was registered at this level. The function fails if the reading into the context fails.

finalize_current_slots ctxt finalizes the current slots posted on this block and marks them as pending into the context.

finalize_pending_slots ctxt finalizes pending slots which are old enough (i.e. registered at level current_level - lag). All slots marked as available are returned. All the pending slots at current_level - lag level are removed from the context.

OCaml

Innovation. Community. Security.