Module Tezos_alpha_test_helpers.Consensus_helpers

type kind =
  1. | Preattestation
  2. | Attestation
  3. | Aggregate

Crafts a consensus operation.

By default, a (pre)attestation is for the first slot, whereas an attestations aggregate is for all the level's attesters that are using a BLS consensus key.

Moreover, the operation points to the given attested_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.

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