ligo/src/lib_base/mempool.mli

25 lines
1002 B
OCaml
Raw Normal View History

(**************************************************************************)
(* *)
2018-02-06 00:17:03 +04:00
(* Copyright (c) 2014 - 2018. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
(** Tezos Shell Module - Mempool, a.k.a. the operations safe to be
broadcasted. *)
type t = {
known_valid: Operation_hash.t list ;
(** A valid sequence of operations on top of the current head. *)
pending: Operation_hash.Set.t ;
(** Set of known not-invalid operation. *)
}
type mempool = t
val encoding: mempool Data_encoding.t
val empty: mempool
(** Empty mempool. *)