Extensions.Root_history
The root history extension provides a historical view into previous roots the * transition frontier has maintained. The root history will store at most the * 2*k
historical roots.
type view = t
val create : logger:Logger.t -> Full_frontier.t -> t * view
val handle_diffs :
t ->
Full_frontier.t ->
Frontier_base.Diff.Full.With_mutant.t list ->
view option
module Broadcasted : sig ... end
val is_empty : t -> bool
val lookup :
t ->
Mina_base.State_hash.t ->
Frontier_base.Root_data.Historical.t option
val mem : t -> Mina_base.State_hash.t -> bool
val most_recent : t -> Frontier_base.Root_data.Historical.t option
val oldest : t -> Frontier_base.Root_data.Historical.t option
val to_list : t -> Frontier_base.Root_data.Historical.t list
val protocol_states_for_scan_state :
t ->
Mina_base.State_hash.t ->
Mina_state.Protocol_state.value list option