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. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-06-01 19:10:54 +04:00
|
|
|
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 _ = ()
|