Octez_agnostic_baker.Protocol_plugins
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
.
val proto_plugin_for_protocol :
Tezos_base.TzPervasives.Protocol_hash.t ->
proto_plugin Tezos_base.TzPervasives.tzresult
Return the protocol plugin for a given protocol (or an error if not supported).