Module Octez_agnostic_baker.Protocol_plugins

Protocol registration logic

type proto_plugin = (module Protocol_plugin_sig.S)
val register : proto_plugin -> unit

Register a protocol plugin for a specific protocol to be used by the agnostic baker.

val registered_protocols : unit -> Tezos_base.TzPervasives.Protocol_hash.t list

Returns the list of registered protocols.

val last_registered : unit -> Tezos_base.TzPervasives.Protocol_hash.t

Returns the last registered protocol.

NOTE: This is the last protocol with which the agnostic baker is linked against, and this is decided only by the order in manifest/main.ml.

Using the correct protocol plugin

Return the protocol plugin for a given protocol (or an error if not supported).