Tezos_dal_node_lib.Committee_cache
Cache for the DAL committee.
type committee = shard_indexes Tezos_crypto.Signature.Public_key_hash.Map.t
Represents the committee for a given level, as a mapping from an attester to its assigned shard indexes.
val create : max_size:int -> t
create ~max_size
returns an empty cache. If the cache size exceeds max_size
, committees of old level
s are removed in FIFO order.
find t ~level
returns the committee
at level
. When the committee for block level level
is not stored in the cache it returns None
.