Mavryk_baking_alpha.Operation_workerLaunch processes to gather operations from the mempool and make them available for the baker.
type candidate = {hash : Mavryk_base.TzPervasives.Block_hash.t;round_watched : Mavryk_protocol_alpha.Protocol.Alpha_context.Round.t;payload_hash_watched : Mavryk_protocol_alpha.Protocol.Block_payload_hash.t;}val candidate_encoding : candidate Mavryk_base.TzPervasives.Data_encoding.ttype event = | Prequorum_reached of candidate
* Mavryk_protocol_alpha.Protocol.Alpha_context.Kind.preattestation
Mavryk_protocol_alpha.Protocol.Alpha_context.operation
list| Quorum_reached of candidate
* Mavryk_protocol_alpha.Protocol.Alpha_context.Kind.attestation
Mavryk_protocol_alpha.Protocol.Alpha_context.operation
listval create :
?monitor_node_operations:bool ->
Mavryk_client_alpha.Protocol_client_context.full ->
t Lwt.tcreate ?monitor_node_operations cctxt creates a monitoring process to fetch operations for the baker to process.
val retrieve_pending_operations :
Mavryk_client_alpha.Protocol_client_context.full ->
t ->
unit Mavryk_base.TzPervasives.tzresult Lwt.tval get_current_operations : t -> Operation_pool.poolval monitor_preattestation_quorum :
t ->
consensus_threshold:int ->
get_slot_voting_power:
(slot:Mavryk_protocol_alpha.Protocol.Alpha_context.Slot.t -> int option) ->
candidate ->
unit Lwt.tval monitor_attestation_quorum :
t ->
consensus_threshold:int ->
get_slot_voting_power:
(slot:Mavryk_protocol_alpha.Protocol.Alpha_context.Slot.t -> int option) ->
candidate ->
unit Lwt.tval cancel_monitoring : t -> unitval shutdown_worker : t -> (unit, exn list) Stdlib.result Lwt.t