Persistent_root.Instancetype t = Instance_type.tval load_potential_snarked_ledgers_from_disk : Factory_type.t -> string listval write_potential_snarked_ledgers_to_disk : Instance_type.t -> unitval enqueue_snarked_ledger : location:string -> Instance_type.t -> unitval dequeue_snarked_ledger : Instance_type.t -> unitval destroy : Instance_type.t -> unitval close : Instance_type.t -> unitval create : Factory_type.t -> Instance_type.tval load_from_disk :
Factory_type.t ->
snarked_ledger_hash:Mina_base.Frozen_ledger_hash.t ->
logger:Logger.t ->
( Instance_type.t, [> `Snarked_ledger_mismatch ] ) Core._resultWhen we load from disk, 1. Check the potential_snarked_ledgers to see if any one of these matches the snarked_ledger_hash in persistent_frontier; 2. if none of those works, we load the old snarked_ledger and check if the old snarked_ledger matches with persistent_frontier; 3. if not, we just reset all the persisted data and start from genesis
val snarked_ledger : Instance_type.t -> Ledger.Db.tval set_root_identifier :
Instance_type.t ->
Frontier_base.Root_identifier.t ->
unitval load_root_identifier :
Instance_type.t ->
Frontier_base.Root_identifier.Stable.Latest.t optionval set_root_state_hash : Instance_type.t -> Mina_base.State_hash.t -> unit