Baking: preload signers for delegate keys (daemon)

This commit is contained in:
Vincent Bernardoff 2018-05-22 00:20:47 +02:00 committed by Grégoire Henry
parent f0fc9ac37c
commit cfe82ab7cf

View File

@ -27,6 +27,7 @@ let commands () =
if (not endorsement) && (not baking) && (not denunciation) if (not endorsement) && (not baking) && (not denunciation)
then (true, true, true) then (true, true, true)
else (endorsement, baking, denunciation) in else (endorsement, baking, denunciation) in
iter_s (fun d -> Client_keys.get_key cctxt d >>|? fun _ -> ()) delegates >>=? fun () ->
run_daemon cctxt ?max_priority ~endorsement_delay ~endorsement ~baking ~denunciation delegates) ; run_daemon cctxt ?max_priority ~endorsement_delay ~endorsement ~baking ~denunciation delegates) ;
command ~group ~desc: "Forge and inject an endorsement operation." command ~group ~desc: "Forge and inject an endorsement operation."
(args1 max_priority_arg) (args1 max_priority_arg)