Module Validate_errors.Voting

Errors that may arise while validating a voting operation.

type Mavryk_protocol_environment_alpha.Error_monad.error +=
  1. | Wrong_voting_period_index of {
    1. expected : int32;
    2. provided : int32;
    }
  2. | Wrong_voting_period_kind of {
    1. current : Alpha_context.Voting_period.kind;
    2. expected : Alpha_context.Voting_period.kind list;
    }
  3. | Source_not_in_vote_listings
  4. | Empty_proposals
  5. | Proposals_contain_duplicate of {
    1. proposal : Mavryk_protocol_environment_alpha.Protocol_hash.t;
    }
  6. | Already_proposed of {
    1. proposal : Mavryk_protocol_environment_alpha.Protocol_hash.t;
    }
  7. | Too_many_proposals of {
    1. previous_count : int;
    2. operation_count : int;
    }
  8. | Conflicting_proposals of operation_conflict
  9. | Testnet_dictator_multiple_proposals
  10. | Proposals_from_unregistered_delegate of Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t
  11. | Ballot_for_wrong_proposal of {
    1. current : Mavryk_protocol_environment_alpha.Protocol_hash.t;
    2. submitted : Mavryk_protocol_environment_alpha.Protocol_hash.t;
    }
  12. | Already_submitted_a_ballot
  13. | Ballot_from_unregistered_delegate of Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t
  14. | Conflicting_ballot of operation_conflict