package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
Octez protocol 017-PtNairob libraries

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/octez-protocol-017-PtNairob-libs.baking/Tezos_baking_017_PtNairob/Baking_pow/index.html

Module Tezos_baking_017_PtNairob.Baking_powSource

Sourceval empty_proof_of_work_nonce : Tezos_base.TzPervasives.Bytes.t

A null proof-of-work nonce. This should only be used to nonsensical blocks of the correct size and shape.

Sourceval mine : proof_of_work_threshold:int64 -> Tezos_base.TzPervasives.Block_header.shell_header -> (Tezos_base.TzPervasives.Bytes.t -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Block_header.contents) -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Block_header.contents Tezos_base.TzPervasives.tzresult Lwt.t

mine ~proof_of_work_threshold chain block header builder returns a block with a valid proof-of-work nonce. The function builder, provided by the caller, is used to make the block. All the internal logic of generating nonces and checking for the proof-of-work threshold is handled by mine.

OCaml

Innovation. Community. Security.