b674c538b2
This refactors `src/node/shell/state.ml` in order to trace the source of blocks and operations. This prepares the node for the three-pass validator. In the procces, it adds an in-memory overlay for blocks and operations.
24 lines
986 B
OCaml
24 lines
986 B
OCaml
(**************************************************************************)
|
|
(* *)
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
(* *)
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
(* *)
|
|
(**************************************************************************)
|
|
|
|
open Error_monad
|
|
|
|
val mkdir: string -> unit
|
|
|
|
val check_dir: string -> unit tzresult Lwt.t
|
|
val is_directory: string -> bool
|
|
|
|
val with_file_in: string -> (MBytes.t -> 'a Lwt.t) -> 'a Lwt.t
|
|
val with_file_out: string -> MBytes.t -> unit Lwt.t
|
|
|
|
val remove_file: ?cleanup:bool -> string -> unit Lwt.t
|
|
|
|
val fold: string -> init:'a -> f:(string -> 'a -> 'a Lwt.t) -> 'a Lwt.t
|
|
|