Module Data.Local_state

module Snapshot : sig ... end
type t
val to_yojson : t -> Yojson.Safe.t
val create : Signature_lib.Public_key.Compressed.Set.t -> context:(module Intf.CONTEXT) -> genesis_ledger:Mina_ledger.Ledger.t Core_kernel.Lazy.t -> genesis_epoch_data:Genesis_epoch_data.t -> epoch_ledger_location:string -> genesis_state_hash:Mina_base.State_hash.t -> t
val current_block_production_keys : t -> Signature_lib.Public_key.Compressed.Set.t
val next_epoch_ledger : t -> Snapshot.Ledger_snapshot.t
val staking_epoch_ledger : t -> Snapshot.Ledger_snapshot.t
val block_production_keys_swap : constants:Constants.t -> t -> Signature_lib.Public_key.Compressed.Set.t -> Block_time.t -> unit

Swap in a new set of block production keys and invalidate and/or recompute cached data

module For_tests : sig ... end