-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
} | ||
|
||
#[test] | ||
fn voting_cannot_lock_less_than_limit() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this + the following two are the main tests which are related to this PR, this rest of this file is almost the same with some minor style changes.
/// | ||
/// Furthermore, each vector of scalars is chunked with the cap of `APPROVAL_SET_SIZE`. | ||
|
||
// A list of votes for each voter. The votes are stored as numeric values and parsed in a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why replace the doc-comment as a dumb-comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, I started using this plugin to wrap doc-comment lines and... it seems to have failed me here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(probably because it inferred the prefix from the line above it "// ---- persistent state (always relevant, changes constantly)" )
needs a runtime bump |
* Fix locking. * Some reformattings. * Fix build. * Fix doc comment. * Bump.
* Fix locking. * Some reformattings. * Fix build. * Fix doc comment. * Bump.
* Fix locking. * Some reformattings. * Fix build. * Fix doc comment. * Bump.
election::vote()
to define how much stake should be locked with the vote (with a configurable minimum)fn chunking_xxx()
: everything about the vectors being chunked.fn voting_xxx()
: everything about voting rules.fn candidacy_xxx()
: everything about candidacy rules.fn election_xxx()
: e2e tests about election rounds carry etc.fn pot_xxx()
: everything about the weighted, decaying vote pot, which maybe we should have named differently.closes #3564
TODO: make a PR for polkadot once
MinimumVotingLock
is settled.