0bd31b0c38
Split between `lib_rpc_http/RPC_client` and `lib_shell_services/Block_services`.
42 lines
1.4 KiB
OCaml
42 lines
1.4 KiB
OCaml
(**************************************************************************)
|
|
(* *)
|
|
(* Copyright (c) 2014 - 2018. *)
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
(* *)
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
(* *)
|
|
(**************************************************************************)
|
|
|
|
open Proto_alpha
|
|
open Tezos_context
|
|
|
|
type block_info = {
|
|
hash: Block_hash.t ;
|
|
net_id: Net_id.t ;
|
|
predecessor: Block_hash.t ;
|
|
fitness: MBytes.t list ;
|
|
timestamp: Time.t ;
|
|
protocol: Protocol_hash.t ;
|
|
level: Level.t ;
|
|
}
|
|
|
|
val info:
|
|
#RPC_context.simple ->
|
|
?include_ops:bool -> Block_services.block -> block_info tzresult Lwt.t
|
|
|
|
val compare:
|
|
block_info -> block_info -> int
|
|
|
|
val monitor:
|
|
#RPC_context.t ->
|
|
?include_ops:bool -> ?length:int -> ?heads:Block_hash.t list ->
|
|
?delay:int -> ?min_date:Time.t -> ?min_heads:int ->
|
|
?compare:(block_info -> block_info -> int) ->
|
|
unit -> block_info list tzresult Lwt_stream.t tzresult Lwt.t
|
|
|
|
val blocks_from_cycle:
|
|
#RPC_context.simple ->
|
|
Block_services.block ->
|
|
Cycle.t ->
|
|
Block_hash.t list tzresult Lwt.t
|