Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val contents :
?proof_of_work_nonce:Stdlib.Bytes.t ->
?priority:int ->
?seed_nonce_hash:Tezos_protocol_alpha.Protocol.Nonce_hash.t ->
?liquidity_baking_escape_vote:bool ->
unit ->
Tezos_protocol_alpha.Protocol.Alpha_context.Block_header.contents
val forge_header :
?policy:baker_policy ->
?timestamp:Tezos_protocol_alpha.Protocol.Alpha_context.Timestamp.time ->
?operations:Tezos_protocol_alpha.Protocol.Alpha_context.Operation.packed list ->
?liquidity_baking_escape_vote:bool ->
t ->
(header, Tezos_error_monad.TzCore.error list) Stdlib.result 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_alpha.Protocol.Nonce_hash.t option ->
header ->
header
Sets uniquely seed_nonce_hash of a header
val set_baker :
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
header ->
header
Sets the baker that will sign the header to an arbitrary pkh
val sign_header :
header ->
(Tezos_protocol_alpha.Protocol.Alpha_context.Block_header.block_header,
Tezos_error_monad.TzCore.error list)
Stdlib.result
Lwt.t
Signs the header with the key of the baker configured in the header. The header can no longer be modified, only applied.