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-01-29 04:06:47 +04:00
|
|
|
open Proto_alpha
|
2018-02-11 22:17:39 +04:00
|
|
|
open Alpha_context
|
2018-01-29 04:06:47 +04:00
|
|
|
|
2016-09-08 21:13:10 +04:00
|
|
|
type block_info = {
|
|
|
|
hash: Block_hash.t ;
|
2018-02-16 04:26:24 +04:00
|
|
|
chain_id: Chain_id.t ;
|
2016-09-08 21:13:10 +04:00
|
|
|
predecessor: Block_hash.t ;
|
|
|
|
fitness: MBytes.t list ;
|
|
|
|
timestamp: Time.t ;
|
2017-04-10 19:06:11 +04:00
|
|
|
protocol: Protocol_hash.t ;
|
2018-04-16 02:44:24 +04:00
|
|
|
next_protocol: Protocol_hash.t ;
|
2016-09-08 21:13:10 +04:00
|
|
|
level: Level.t ;
|
|
|
|
}
|
|
|
|
|
|
|
|
val info:
|
2018-02-11 22:17:40 +04:00
|
|
|
#Proto_alpha.rpc_context ->
|
2018-04-16 02:44:24 +04:00
|
|
|
?chain:Chain_services.chain ->
|
|
|
|
Block_services.block ->
|
|
|
|
block_info tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2018-04-16 02:44:24 +04:00
|
|
|
val monitor_valid_blocks:
|
|
|
|
#Proto_alpha.rpc_context ->
|
|
|
|
?chains:Chain_services.chain list ->
|
|
|
|
?protocols:Protocol_hash.t list ->
|
|
|
|
?next_protocols:Protocol_hash.t list ->
|
|
|
|
unit -> block_info tzresult Lwt_stream.t tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2018-04-16 02:44:24 +04:00
|
|
|
val monitor_heads:
|
2018-02-11 22:17:40 +04:00
|
|
|
#Proto_alpha.rpc_context ->
|
2018-04-16 02:44:24 +04:00
|
|
|
?next_protocols:Protocol_hash.t list ->
|
|
|
|
Chain_services.chain ->
|
|
|
|
block_info tzresult Lwt_stream.t tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2018-04-21 18:15:52 +04:00
|
|
|
val blocks_from_current_cycle:
|
2018-02-11 22:17:40 +04:00
|
|
|
#Proto_alpha.rpc_context ->
|
2018-04-16 02:44:24 +04:00
|
|
|
?chain:Chain_services.chain ->
|
2018-02-08 13:51:02 +04:00
|
|
|
Block_services.block ->
|
2018-04-21 18:15:52 +04:00
|
|
|
?offset:int32 ->
|
|
|
|
unit ->
|
2017-02-16 00:18:48 +04:00
|
|
|
Block_hash.t list tzresult Lwt.t
|