d6f79edae2
- start using `GET` and query parameters instead of `POST` when meaningful - inline parsed protocol data and metadata in block headers - inline parsed protocol data and metadata in operations - split the RPC in four categories: - static data, available explicitly in block headers and operations - static "metadata", information that were computed while validating a block or an operation, but which are not explicit in the block header (e.g. the baker of a block, the list of internal transfer... (currently not implemented, but that's WIP)) - "context" all the static data we may read in the context (contracts balance, list of delegates, ...) - "helpers" are some RPC that may perform some computation.
53 lines
1.6 KiB
OCaml
53 lines
1.6 KiB
OCaml
(**************************************************************************)
|
|
(* *)
|
|
(* Copyright (c) 2014 - 2018. *)
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
(* *)
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
(* *)
|
|
(**************************************************************************)
|
|
|
|
type t
|
|
|
|
type config = {
|
|
genesis: State.Chain.genesis ;
|
|
store_root: string ;
|
|
context_root: string ;
|
|
patch_context: (Context.t -> Context.t Lwt.t) option ;
|
|
p2p: (P2p.config * P2p.limits) option ;
|
|
test_chain_max_tll: int option ;
|
|
}
|
|
|
|
and peer_validator_limits = {
|
|
new_head_request_timeout: float ;
|
|
block_header_timeout: float ;
|
|
block_operations_timeout: float ;
|
|
protocol_timeout: float ;
|
|
worker_limits: Worker_types.limits
|
|
}
|
|
and prevalidator_limits = {
|
|
max_refused_operations: int ;
|
|
operation_timeout: float ;
|
|
worker_limits : Worker_types.limits ;
|
|
}
|
|
and block_validator_limits = {
|
|
protocol_timeout: float ;
|
|
worker_limits : Worker_types.limits ;
|
|
}
|
|
and chain_validator_limits = {
|
|
bootstrap_threshold: int ;
|
|
worker_limits : Worker_types.limits ;
|
|
}
|
|
|
|
val create:
|
|
config ->
|
|
peer_validator_limits ->
|
|
block_validator_limits ->
|
|
prevalidator_limits ->
|
|
chain_validator_limits ->
|
|
t tzresult Lwt.t
|
|
|
|
val shutdown: t -> unit Lwt.t
|
|
|
|
val build_rpc_directory: t -> unit RPC_directory.t
|