package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Delegate_sampler/index.html

Module Tezos_raw_protocol_alpha.Delegate_samplerSource

This module draws random values for a cycle based on the Seed_repr.seed associated that cycle. These random values are:

  • delegates associated with slots
  • snapshot indexes. The selection of delegates is done by sampling from a particular distribution of the stake among the active delegates.

This module is responsible for maintaining the table Storage.Delegate_sampler_state.

Participation slots potentially associated to accounts. The accounts that didn't place a deposit will be excluded from this list. This function should only be used to compute the deposits to freeze or initialize the protocol while stitching. RPCs can use this function to predict an approximation of long term future slot allocations. It shouldn't be used in the baker.

load_sampler_for_cycle ctxt cycle caches the seeded stake sampler for cycle in ctxt. If the sampler was already cached, then ctxt is returned unchanged.

This function has the same effect on ctxt as slot_owner and baking_rights_owner.

compute_snapshot_index ctxt cycle max_snapshot_index Returns the index of the selected snapshot for the cycle passed as argument, and for the max index of snapshots taken so far, max_snapshot_index (see Stake_storage.max_snapshot_index.

Sourcemodule For_RPC : sig ... end
OCaml

Innovation. Community. Security.