Mavryk_baking_002_PtBoreas.Node_rpc
val inject_block :
Mavryk_client_002_PtBoreas.Protocol_client_context.full ->
?force:bool ->
chain:Mavryk_shell_services.Shell_services.chain ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Block_header.t ->
Mavryk_base.Operation.t list list ->
Mavryk_base.TzPervasives.Block_hash.t Mavryk_base.TzPervasives.tzresult Lwt.t
Inject a block.
val inject_operation :
Mavryk_client_002_PtBoreas.Protocol_client_context.full ->
chain:Mavryk_shell_services.Shell_services.chain ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation ->
Mavryk_base.TzPervasives.Operation_hash.t Mavryk_base.TzPervasives.tzresult
Lwt.t
Inject an operation.
val preapply_block :
Mavryk_client_002_PtBoreas.Protocol_client_context.full ->
chain:Mavryk_shell_services.Shell_services.chain ->
head:Mavryk_base.TzPervasives.Block_hash.t ->
timestamp:Mavryk_base.TzPervasives.Time.Protocol.t ->
protocol_data:Mavryk_protocol_002_PtBoreas.Protocol.block_header_data ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation list
list ->
(Mavryk_base.Block_header.shell_header
* Mavryk_base.TzPervasives.error Mavryk_shell_services.Preapply_result.t
list)
Mavryk_base.TzPervasives.tzresult
Lwt.t
Preapply a block using the node validation mechanism.
val monitor_valid_proposals :
Mavryk_client_002_PtBoreas.Protocol_client_context.rpc_context ->
chain:Mavryk_shell_services.Shell_services.chain ->
?cache:Baking_state.block_info Baking_cache.Block_cache.t ->
unit ->
(Baking_state.proposal Lwt_stream.t * (unit -> unit))
Mavryk_base.TzPervasives.tzresult
Lwt.t
Monitor validated blocks/proposals from the node.
val monitor_heads :
Mavryk_client_002_PtBoreas.Protocol_client_context.rpc_context ->
chain:Mavryk_shell_services.Shell_services.chain ->
?cache:Baking_state.block_info Baking_cache.Block_cache.t ->
unit ->
(Baking_state.proposal Lwt_stream.t * (unit -> unit))
Mavryk_base.TzPervasives.tzresult
Lwt.t
Monitor heads from the node.
val await_protocol_activation :
Mavryk_client_002_PtBoreas.Protocol_client_context.rpc_context ->
chain:Mavryk_shell_services.Shell_services.chain ->
unit ->
unit Mavryk_base.TzPervasives.tzresult Lwt.t
Await the current protocol to be activated.
val fetch_dal_config :
Mavryk_client_002_PtBoreas.Protocol_client_context.rpc_context ->
Mavryk_crypto_dal.Cryptobox.Config.t Mavryk_base.TzPervasives.tzresult Lwt.t
val get_attestable_slots :
Mavryk_rpc.Context.generic ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
attested_level:int32 ->
Mavryk_dal_node_services.Types.attestable_slots
Mavryk_base.TzPervasives.tzresult
Lwt.t
get_attestable_slots ctxt pkh ~level
calls the DAL node RPC GET /profiles/<pkh>/attested_levels/<level>/attestable_slots
val register_dal_profiles :
Mavryk_rpc.Context.generic ->
Baking_state.consensus_key list ->
unit Mavryk_base.TzPervasives.tzresult Lwt.t
register_dal_profiles ctxt delegates
calls the DAL node RPC PATCH /profiles/ to register each profile corresponding to a delegate in delegates
.