2016-09-08 21:13:10 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
type block_info = {
|
|
|
|
hash: Block_hash.t ;
|
|
|
|
predecessor: Block_hash.t ;
|
|
|
|
fitness: MBytes.t list ;
|
|
|
|
timestamp: Time.t ;
|
|
|
|
protocol: Protocol_hash.t option ;
|
|
|
|
level: Level.t ;
|
|
|
|
}
|
|
|
|
|
|
|
|
val info:
|
2017-04-05 01:35:41 +04:00
|
|
|
Client_rpcs.config ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?operations:bool -> Client_node_rpcs.Blocks.block -> block_info tzresult Lwt.t
|
|
|
|
|
2016-12-03 16:05:02 +04:00
|
|
|
val compare:
|
|
|
|
block_info -> block_info -> int
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
val monitor:
|
2017-04-05 01:35:41 +04:00
|
|
|
Client_rpcs.config ->
|
2016-09-21 18:22:43 +04:00
|
|
|
?operations:bool -> ?length:int -> ?heads:Block_hash.t list ->
|
|
|
|
?delay:int -> ?min_date:Time.t -> ?min_heads:int ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?compare:(block_info -> block_info -> int) ->
|
2017-04-05 01:35:41 +04:00
|
|
|
unit -> block_info list tzresult Lwt_stream.t tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
val blocks_from_cycle:
|
2017-04-05 01:35:41 +04:00
|
|
|
Client_rpcs.config ->
|
2016-09-08 21:13:10 +04:00
|
|
|
Client_node_rpcs.Blocks.block ->
|
|
|
|
Cycle.t ->
|
2017-02-16 00:18:48 +04:00
|
|
|
Block_hash.t list tzresult Lwt.t
|