cleanup_poll: TxDescriptor<{
    max: number;
    poll_index: number;
}>

Remove votes from the given poll. It must have ended.

  • origin: Must be Signed by any account.
  • poll_index: Index of a poll which is completed and for which votes continue to exist.
  • max: Maximum number of vote items from remove in this call.

Transaction fees are waived if the operation is successful.

Weight O(max) (less if there are fewer items to remove than max).