Baker: remove retry calls on failing shell operation validation

This commit is contained in:
Vincent Botbol 2018-06-25 17:21:20 +02:00
parent 9cdd593e61
commit c267f04cdc

View File

@ -608,16 +608,9 @@ let bake_slot
errs >>= fun () -> errs >>= fun () ->
return None return None
| Ok operations -> | Ok operations ->
Tezos_stdlib_unix.Lwt_utils_unix.retry Alpha_block_services.Helpers.Preapply.block
~log:(fun errs -> cctxt ~chain ~block
lwt_log_error ~timestamp ~sort:true ~protocol_data operations
"Error while prevalidating operations\n%a\nRetrying..."
pp_print_error errs
)
(fun () ->
Alpha_block_services.Helpers.Preapply.block
cctxt ~chain ~block
~timestamp ~sort:true ~protocol_data operations)
>>= function >>= function
| Error errs -> | Error errs ->
lwt_log_error "Error while prevalidating operations:@\n%a" lwt_log_error "Error while prevalidating operations:@\n%a"
@ -706,7 +699,6 @@ let bake
| true -> lwt_log_error "Level %a : previously baked" | true -> lwt_log_error "Level %a : previously baked"
Raw_level.pp level >>= return Raw_level.pp level >>= return
| false -> | false ->
inject_block cctxt inject_block cctxt
~force:true ~chain ~force:true ~chain
~shell_header ~priority ?seed_nonce_hash ~src_sk ~shell_header ~priority ?seed_nonce_hash ~src_sk