package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V6/Make/Updater/index.html

Module Make.UpdaterSource

Tezos Protocol Environment - Protocol updater.

Sourcetype validation_result = {
  1. context : Context.t;
    (*

    The resulting context, it will be used for the next block.

    *)
  2. fitness : Fitness.t;
    (*

    The effective fitness of the block (to be compared with the one 'announced' in the block header).

    *)
  3. message : string option;
    (*

    An optional informative message, akin to a 'git commit' message, which can be attached to the context when it's being commited.

    *)
  4. max_operations_ttl : int;
    (*

    The "time-to-live" of operations for the next block: any operation whose 'branch' is older than 'ttl' blocks in the past cannot be included in the next block.

    *)
  5. last_allowed_fork_level : Int32.t;
    (*

    The level of the last block for which the node might consider an alternate branch. The shell should consider as invalid any branch whose fork point is older (has a lower level) than the given value.

    *)
}

Validation result: the record returned by the protocol on the successful validation of a block.

Sourcetype quota = {
  1. max_size : int;
    (*

    The maximum size (in bytes) of the serialized list of operations.

    *)
  2. max_op : int option;
    (*

    The maximum number of operations in a block. None means no limit.

    *)
}
Sourcetype rpc_context = {
  1. block_hash : Block_hash.t;
  2. block_header : Block_header.shell_header;
  3. context : Context.t;
}
Sourcemodule type PROTOCOL = sig ... end

This is the signature of a Tezos protocol implementation. It has access to the standard library and the Environment module.

activate ctxt ph activates an economic protocol (given by its hash ph) from the context ctxt. The resulting context is still a context for the current economic protocol, and the migration is not complete until init in invoked.

OCaml

Innovation. Community. Security.