Shell: add rpc to trigget a Get_current_event

This commit is contained in:
Marco Stronati 2018-11-22 15:44:14 +01:00 committed by Pierre Boutillier
parent 6b3517e095
commit e3111bc574
No known key found for this signature in database
GPG Key ID: C2F73508B56A193C
2 changed files with 13 additions and 0 deletions

View File

@ -744,6 +744,14 @@ module Make(Proto : PROTO)(Next_proto : PROTO) = struct
~output: Data_encoding.empty
RPC_path.(path / "request_operations")
let request_operations path =
RPC_service.post_service
~description:"Request the operations of your peers."
~input: Data_encoding.empty
~query: RPC_query.empty
~output: Data_encoding.empty
RPC_path.(path / "request_operations")
end
let live_blocks =

View File

@ -427,6 +427,11 @@ module Make(Proto : PROTO)(Next_proto : PROTO) : sig
([ `POST ], 'a,
'b , unit, unit, unit) RPC_service.t
val request_operations :
('a, 'b) RPC_path.t ->
([ `POST ], 'a,
'b , unit, unit, unit) RPC_service.t
end
val live_blocks: