Tezos_agnostic_baker_alpha.Baker_commands_helpers
include Octez_agnostic_baker.Protocol_plugin_sig.BAKER_COMMANDS_HELPERS
val run_baker :
Tezos_client_base.Client_context.full ->
?dal_node_rpc_ctxt:Tezos_rpc.Context.generic ->
?minimal_fees:int64 ->
?minimal_nanotez_per_gas_unit:Q.t ->
?minimal_nanotez_per_byte:Q.t ->
?votes:Octez_agnostic_baker.Configuration.per_block_votes_config ->
?extra_operations:Uri.t ->
?pre_emptive_forge_time:Q.t ->
?force_apply_from_round:int ->
?remote_calls_timeout:Q.t ->
?data_dir:string ->
?state_recorder:bool ->
chain:Tezos_shell_services.Shell_services.chain ->
keep_alive:bool ->
Tezos_base.TzPervasives.Signature.V_latest.public_key_hash list ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
run_baker ~configuration ~baking_mode ~sources ~cctxt
is the main running function signature that all protocol plugins will need to implement. It requires the ~configuration
which contains all the possible CLI arguments for the agnostic baker, together with a ~baking_mode
argument and delegates list given by ~sources
in the client context ~cctxt
.
Depending on the protocol, the arguments can be transformed in the corresponding plugin, but the structure of the list of arguments will not grow or shrink, to prevent incompatibilities at migrations.
val run_vdf_daemon :
cctxt:Tezos_client_base.Client_context.full ->
keep_alive:bool ->
unit Tezos_base.TzPervasives.tzresult Lwt.t