diff --git a/src/lib_shell_services/block_services.ml b/src/lib_shell_services/block_services.ml index 9857f97fe..8a07ad836 100644 --- a/src/lib_shell_services/block_services.ml +++ b/src/lib_shell_services/block_services.ml @@ -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 = diff --git a/src/lib_shell_services/block_services.mli b/src/lib_shell_services/block_services.mli index 6913d4806..f29084afa 100644 --- a/src/lib_shell_services/block_services.mli +++ b/src/lib_shell_services/block_services.mli @@ -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: