Function: vote(address account, Vote[] votes, bool clearPrevious)
Vote for one or more recipients.
Inputs
account
Control: Controlled by the user.
Constraints: N/A.
Impact: The account for voting.
votes
Control: Controlled by the user.
Constraints: N/A.
Impact: Array of tuples of vote data (recipient ID, vote points).
clearPrevious
Control: Controlled by the user.
Constraints: N/A.
Impact: If true, the voter's current votes are cleared prior to recording the new votes. If false, new votes are added in addition to previous votes.
Branches and code coverage (including function calls)
Intended branches
Successful with voting.
Negative behavior
No registered weight for the account.