Proto/Alpha: fix endorsement test

This commit is contained in:
Cagdas Bozman 2017-04-07 13:11:49 +02:00 committed by Benjamin Canou
parent 54027a701b
commit c1e2d8eb25

View File

@ -174,10 +174,8 @@ let test_endorsement_rights contract block =
Helpers.Endorse.endorsement_rights contract block >>|? fun possibilities ->
possibilities <> []
let run _blkid (({ b1 ; b2 ; b3 ; b4 ; b5 } : Helpers.Account.bootstrap_accounts) as baccounts) =
let run head (({ b1 ; b2 ; b3 ; b4 ; b5 } : Helpers.Account.bootstrap_accounts) as baccounts) =
(* Helpers.Mining.mine b1 blkid >>=? fun n -> *)
let head = `Head 0 in
let default_account = Helpers.Account.create "default_account" in
test_endorsement_rights default_account head >>=? fun has_right_to_endorse ->