package octez-protocol-019-PtParisB-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Block.ForgeSource

Sourceval contents : ?proof_of_work_threshold:Int64.t -> ?seed_nonce_hash:Tezos_protocol_019_PtParisB.Protocol.Nonce_hash.t -> ?liquidity_baking_toggle_vote: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Per_block_votes.per_block_vote -> ?adaptive_issuance_vote: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Per_block_votes.per_block_vote -> payload_hash:Tezos_protocol_019_PtParisB.Protocol.Block_payload_hash.t -> payload_round:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Round.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Block_header.shell_header -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Block_header.contents Tezos_base.TzPervasives.tzresult Lwt.t
Sourcetype header
Sourceval classify_operations : Tezos_protocol_019_PtParisB.Protocol.Alpha_context.packed_operation list -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.packed_operation list list
Sourceval forge_header : ?locked_round: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Round.t option -> ?payload_round: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Round.t option -> ?policy:baker_policy -> ?timestamp:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Timestamp.time -> ?operations: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Operation.packed list -> ?liquidity_baking_toggle_vote: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Per_block_votes.per_block_vote -> ?adaptive_issuance_vote: Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Per_block_votes.per_block_vote -> 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.

Sourceval set_seed_nonce_hash : ?proof_of_work_threshold:int64 -> Tezos_protocol_019_PtParisB.Protocol.Nonce_hash.t option -> header -> (header, Tezos_base.TzPervasives.tztrace) result Lwt.t

Sets uniquely seed_nonce_hash of a header

Sourceval set_baker : Tezos_protocol_019_PtParisB.Protocol.Alpha_context.public_key_hash -> ?consensus_key:Tezos_base.TzPervasives.Signature.public_key_hash -> header -> header

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

Sourceval sign_header : header -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Block_header.block_header Tezos_base.TzPervasives.tzresult Lwt.t

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

OCaml

Innovation. Community. Security.