package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type mode =
  1. | Application
  2. | Construction
  3. | Mempool
val show_mode : mode -> string
type kind =
  1. | Preendorsement
  2. | Endorsement

Craft an endorsement or preendorsement, and bake a block containing it (in application or construction modes) or inject it into a mempool. When error is None, check that it succeeds, otherwise check that it fails as specified by error.

By default, the (pre)endorsement is for the first slot and is signed by the delegate that owns this slot. Moreover, the operation points to the given endorsed_block: in other words, it has that block's level, round, payload hash, and its branch is the predecessor of that block. Optional arguments allow to override these default parameters.

The predecessor is used as the predecessor of the baked block or the head of the mempool. When it is not provided, we use the endorsed_block for this.

val test_consensus_op_for_next : genesis:Block.t -> kind:[< `Endorsement | `Preendorsement ] -> next:[< `Level | `Round ] -> (unit, Tezos_base.TzPervasives.tztrace) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.