ligo/src/proto_alpha/lib_baking/client_baking_blocks.mli

42 lines
1.4 KiB
OCaml
Raw Normal View History

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. *)
(* *)
(**************************************************************************)
open Proto_alpha
open Alpha_context
2016-09-08 21:13:10 +04:00
type block_info = {
hash: Block_hash.t ;
net_id: Net_id.t ;
2016-09-08 21:13:10 +04:00
predecessor: Block_hash.t ;
fitness: MBytes.t list ;
timestamp: Time.t ;
protocol: Protocol_hash.t ;
2016-09-08 21:13:10 +04:00
level: Level.t ;
}
val info:
#Proto_alpha.rpc_context ->
?include_ops:bool -> Block_services.block -> block_info tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val compare:
block_info -> block_info -> int
2016-09-08 21:13:10 +04:00
val monitor:
#Proto_alpha.rpc_context ->
?include_ops:bool -> ?length:int -> ?heads:Block_hash.t list ->
2016-09-21 18:22:43 +04:00
?delay:int -> ?min_date:Time.t -> ?min_heads:int ->
2016-09-08 21:13:10 +04:00
?compare:(block_info -> block_info -> int) ->
unit -> block_info list tzresult Lwt_stream.t tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val blocks_from_cycle:
#Proto_alpha.rpc_context ->
Block_services.block ->
2016-09-08 21:13:10 +04:00
Cycle.t ->
Block_hash.t list tzresult Lwt.t