Commit 17b16aa1 authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Check that all trustees are in step 7 in election_setup_confirm

parent b4a0a7ef
......@@ -1241,7 +1241,12 @@ let election_setup_confirm uuid se () =
st_public_key <> ""
) se.se_public_keys then ready, "OK" else false, "Missing"
| Some _ ->
if se.se_threshold_parameters <> None then ready, "OK"
if se.se_threshold_parameters <> None &&
match se.se_threshold_trustees with
| None -> false
| Some ts ->
List.for_all (fun {stt_step; _} -> stt_step = Some 7) ts
then ready, "OK"
else false, "Missing"
in
let div_trustee_warning =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment