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 operation = {
|
|
|
|
hash: Operation_hash.t ;
|
|
|
|
content: (Updater.shell_operation * proto_operation) option
|
|
|
|
}
|
|
|
|
|
|
|
|
val monitor:
|
2016-12-03 16:05:02 +04:00
|
|
|
Client_commands.context ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?contents:bool -> ?check:bool -> unit ->
|
|
|
|
operation list Lwt_stream.t Lwt.t
|
|
|
|
|
|
|
|
type valid_endorsement = {
|
|
|
|
hash: Operation_hash.t ;
|
|
|
|
source: public_key_hash ;
|
|
|
|
block: Block_hash.t ;
|
|
|
|
slots: int list ;
|
|
|
|
}
|
|
|
|
|
|
|
|
val filter_valid_endorsement:
|
2016-12-03 16:05:02 +04:00
|
|
|
Client_commands.context ->
|
2016-09-08 21:13:10 +04:00
|
|
|
operation -> valid_endorsement option Lwt.t
|
|
|
|
|
|
|
|
val monitor_endorsement:
|
2016-12-03 16:05:02 +04:00
|
|
|
Client_commands.context ->
|
|
|
|
valid_endorsement Lwt_stream.t Lwt.t
|