pub fn close<T: Config<I>, I: 'static>(
    proposal_hash: T::Hash,
    index: ProposalIndex,
    proposal_weight_bound: Weight,
    length_bound: u32
)
Expand description

Close a vote that is either approved, disapproved or whose voting period has ended.

May be called by any signed account in order to finish voting and close the proposal.

If called before the end of the voting period it will only close the vote if it is has enough votes to be approved or disapproved.

If called after the end of the voting period abstentions are counted as rejections unless there is a prime member set and the prime member cast an approval.

If the close operation completes successfully with disapproval, the transaction fee will be waived. Otherwise execution of the approved operation will be charged to the caller.

  • proposal_weight_bound: The maximum amount of weight consumed by executing the closed proposal.
  • length_bound: The upper bound for the length of the proposal in storage. Checked via storage::read so it is size_of::<u32>() == 4 larger than the pure length.

§Complexity

  • O(B + M + P1 + P2) where:
    • B is proposal size in bytes (length-fee-bounded)
    • M is members-count (code- and governance-bounded)
    • P1 is the complexity of proposal preimage.
    • P2 is proposal-count (code-bounded)

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::close.