package tezos-012-Psithaca-test-helpers

  1. Overview
  2. Docs
type header
val forge_header : ?locked_round: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Round.t option -> ?payload_round: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Round.t option -> ?policy:baker_policy -> ?timestamp:Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Timestamp.time -> ?operations: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Operation.packed list -> ?liquidity_baking_escape_vote:bool -> t -> header Tezos_base__TzPervasives.tzresult Lwt.t

Forges a correct header following the policy. The header can then be modified and applied with apply.

val set_seed_nonce_hash : Tezos_protocol_012_Psithaca.Protocol.Nonce_hash.t option -> header -> header

Sets uniquely seed_nonce_hash of a header

Sets the baker that will sign the header to an arbitrary pkh

Signs the header with the key of the baker configured in the header. The header can no longer be modified, only applied.