Alpha: Add label to baker argument of Apply.mark_skipped

This commit is contained in:
Pierre Chambart 2018-06-26 17:46:50 +02:00
parent 3106dee82a
commit 03ee2224e8

View File

@ -537,8 +537,8 @@ let apply_manager_contents
let rec mark_skipped let rec mark_skipped
: type kind. : type kind.
Signature.Public_key_hash.t -> Level.t -> kind Kind.manager contents_list -> baker : Signature.Public_key_hash.t -> Level.t -> kind Kind.manager contents_list ->
kind Kind.manager contents_result_list = fun baker level -> function kind Kind.manager contents_result_list = fun ~baker level -> function
| Single (Manager_operation ({ source ; fee } as op)) -> | Single (Manager_operation ({ source ; fee } as op)) ->
Single_result Single_result
(Manager_operation_result (Manager_operation_result
@ -557,7 +557,7 @@ let rec mark_skipped
Rewards (baker, level.cycle), Credited fee ] ; Rewards (baker, level.cycle), Credited fee ] ;
operation_result = Skipped (manager_kind op.operation) ; operation_result = Skipped (manager_kind op.operation) ;
internal_operation_results = [] }, internal_operation_results = [] },
mark_skipped baker level rest) mark_skipped ~baker level rest)
let rec precheck_manager_contents_list let rec precheck_manager_contents_list
: type kind. : type kind.
@ -606,7 +606,7 @@ let rec apply_manager_contents_list_rec
operation_result ; operation_result ;
internal_operation_results ; internal_operation_results ;
} in } in
Lwt.return (`Failure, Cons_result (result, mark_skipped baker level rest)) Lwt.return (`Failure, Cons_result (result, mark_skipped ~baker level rest))
| (`Success ctxt, operation_result, internal_operation_results) -> | (`Success ctxt, operation_result, internal_operation_results) ->
let result = let result =
Manager_operation_result { Manager_operation_result {