package octez-protocol-017-PtNairob-libs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Octez protocol 017-PtNairob libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-protocol-017-PtNairob-libs.test-helpers/Tezos_017_PtNairob_test_helpers/Consensus_helpers/index.html
Module Tezos_017_PtNairob_test_helpers.Consensus_helpersSource
Source
val test_consensus_operation :
?delegate:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
?slot:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t ->
?level:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Raw_level.t ->
?round:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t ->
?block_payload_hash:Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t ->
?branch:Tezos_base.TzPervasives.Block_hash.t ->
endorsed_block:Block.t ->
?predecessor:Block.t ->
?error:(Tezos_protocol_017_PtNairob.Environment.Error_monad.error -> bool) ->
loc:string ->
kind ->
mode ->
(unit, Tezos_base.TzPervasives.tztrace) result Lwt.tCraft an endorsement or preendorsement, and bake a block containing it (in application or construction modes) or inject it into a mempool. When error is None, check that it succeeds, otherwise check that it fails as specified by error.
By default, the (pre)endorsement is for the first slot and is signed by the delegate that owns this slot. Moreover, the operation points to the given endorsed_block: in other words, it has that block's level, round, payload hash, and its branch is the predecessor of that block. Optional arguments allow to override these default parameters.
The predecessor is used as the predecessor of the baked block or the head of the mempool. When it is not provided, we use the endorsed_block for this.
Source
val test_consensus_operation_all_modes_different_outcomes :
?delegate:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
?slot:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t ->
?level:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Raw_level.t ->
?round:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t ->
?block_payload_hash:Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t ->
?branch:Tezos_base.TzPervasives.Block_hash.t ->
endorsed_block:Block.t ->
?predecessor:Block.t ->
loc:string ->
?application_error:
(Tezos_protocol_017_PtNairob.Environment.Error_monad.error -> bool) ->
?construction_error:
(Tezos_protocol_017_PtNairob.Environment.Error_monad.error -> bool) ->
?mempool_error:
(Tezos_protocol_017_PtNairob.Environment.Error_monad.error -> bool) ->
kind ->
(unit, Tezos_base.TzPervasives.tztrace) result Lwt.tSource
val test_consensus_operation_all_modes :
?delegate:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
?slot:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t ->
?level:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Raw_level.t ->
?round:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t ->
?block_payload_hash:Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t ->
?branch:Tezos_base.TzPervasives.Block_hash.t ->
endorsed_block:Block.t ->
?predecessor:Block.t ->
?error:(Tezos_protocol_017_PtNairob.Environment.Error_monad.error -> bool) ->
loc:string ->
kind ->
(unit, Tezos_base.TzPervasives.tztrace) result Lwt.tSource
val delegate_of_first_slot :
Context.t ->
(Tezos_protocol_017_PtNairob.Environment.Signature.public_key_hash
* Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t,
Tezos_base.TzPervasives.tztrace)
result
Lwt.tSource
val delegate_of_slot :
?different_slot:bool ->
Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t ->
Context.t ->
(Tezos_protocol_017_PtNairob.Environment.Signature.public_key_hash,
Tezos_base.TzPervasives.tztrace)
result
Lwt.tSource
val test_consensus_op_for_next :
genesis:Block.t ->
kind:[< `Endorsement | `Preendorsement ] ->
next:[< `Level | `Round ] ->
(unit, Tezos_base.TzPervasives.tztrace) result Lwt.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>