Module Block.Forge

type header

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

val set_seed_nonce_hash : ?proof_of_work_threshold:int64 -> Mavryk_protocol_alpha.Protocol.Nonce_hash.t option -> header -> (header, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t

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.