ligo/src/lib_shell_services/connection_metadata.ml

27 lines
1012 B
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
2018-02-06 00:17:03 +04:00
(* Copyright (c) 2014 - 2018. *)
2016-09-08 21:13:10 +04:00
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
type t = {
disable_mempool : bool ;
private_node : bool ;
}
let encoding =
let open Data_encoding in
(conv
(fun { disable_mempool ; private_node } ->
disable_mempool , private_node)
(fun (disable_mempool , private_node) ->
{ disable_mempool ; private_node }))
(obj2
(req "disable_mempool" bool)
(req "private_node" bool))
let pp _ppf _ = ()