Alpha: minor fixes
This commit is contained in:
parent
fa4b33aa47
commit
3b46f49651
@ -744,14 +744,6 @@ module Make(Proto : PROTO)(Next_proto : PROTO) = struct
|
|||||||
~output: Data_encoding.empty
|
~output: Data_encoding.empty
|
||||||
RPC_path.(path / "request_operations")
|
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
|
end
|
||||||
|
|
||||||
let live_blocks =
|
let live_blocks =
|
||||||
|
@ -427,11 +427,6 @@ module Make(Proto : PROTO)(Next_proto : PROTO) : sig
|
|||||||
([ `POST ], 'a,
|
([ `POST ], 'a,
|
||||||
'b , unit, unit, unit) RPC_service.t
|
'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
|
end
|
||||||
|
|
||||||
val live_blocks:
|
val live_blocks:
|
||||||
|
@ -194,10 +194,10 @@ let apply_operation
|
|||||||
in
|
in
|
||||||
let partial =
|
let partial =
|
||||||
match mode with
|
match mode with
|
||||||
| Partial_construction _
|
| Partial_construction _ -> true
|
||||||
| Partial_application _ -> true
|
|
||||||
| Application _
|
| Application _
|
||||||
| Full_construction _ -> false in
|
| Full_construction _
|
||||||
|
| Partial_application _ -> false in
|
||||||
Apply.apply_operation ~partial ctxt chain_id Optimized predecessor baker
|
Apply.apply_operation ~partial ctxt chain_id Optimized predecessor baker
|
||||||
(Alpha_context.Operation.hash operation)
|
(Alpha_context.Operation.hash operation)
|
||||||
operation >>=? fun (ctxt, result) ->
|
operation >>=? fun (ctxt, result) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user