If the target is equal to the signer, then this function is exactly equivalent to
remove_vote. If not equal to the signer, then the vote must have expired,
either because the poll was cancelled, because the voter lost the poll or
because the conviction period is over.
The dispatch origin of this call must be Signed.
target: The account of the vote to be removed; this account must have voted for poll
index.
index: The index of poll of the vote to be removed.
class: The class of the poll.
Weight: O(R + log R) where R is the number of polls that target has voted on.
Weight is calculated for the maximum number of vote.
Remove a vote for a poll.
If the
target
is equal to the signer, then this function is exactly equivalent toremove_vote
. If not equal to the signer, then the vote must have expired, either because the poll was cancelled, because the voter lost the poll or because the conviction period is over.The dispatch origin of this call must be Signed.
target
: The account of the vote to be removed; this account must have voted for pollindex
.index
: The index of poll of the vote to be removed.class
: The class of the poll.Weight:
O(R + log R)
where R is the number of polls thattarget
has voted on. Weight is calculated for the maximum number of vote.