9
votes
Accepted
What is MAX_NOMINATIONS?
The docs for generate_solution_type say:
/// Moreover, the maximum number of edges per voter (distribution per assignment) also need to be
/// specified. Attempting to convert from/to an assignment ...
5
votes
Accepted
What is the difference between pallet_elections_phragmen and sp_npos_solution?
Here's an overview of all of the named crates, and how they relate to one another.
sp-npos-elections: This is a generic rust crate that just implements a bunch of algorithms, such as seq_phragmen, ...
5
votes
Accepted
Is it possible to specify minimum tokens for staking elections?
The pallet itself provides for this, and there is (at the time of writing) a proposal to do just what you are after on Polkadot: https://polkadot.polkassembly.io/post/905
Here is the type described: ...
4
votes
What are these items in ElectionProviderMultiPhase?
tl;dr The Config types in your question are configuration parameters for the deposit of submitting a signed solution and reward for a signed solution accepted at the end of the signed phase.
Context
...
3
votes
Accepted
Substrate validators election failing and connectivy lost
This is because for some reason your pallet-election-provider-multi-phase failed, without a proper fallback configured. The reason for the failure can be multiple things, but the most common one is ...
3
votes
Validator not being onboarded due to Election NoFallback error, possibly
2022-03-08 22:34:48.034 DEBUG offchain-worker runtime::election-provider: [#199] 🗳 pre-dispatch checks failed for mined solution: Module { index: 19, error: 1, message: Some("...
2
votes
What is MAX_NOMINATIONS?
Answer the second question: " Is it 16 from the NposCompactSolution16.0 ?".
Yes and no, for yes part, it is 16; for no part, 16 does not come from NposCompactSolution16.0, it comes from (16)....
2
votes
Accepted
Error submitting transaction (NoUnsignedValidator)
Take a look at the ocw doc's unsigned transaction part: https://docs.substrate.io/how-to-guides/v3/ocw/transactions/
Because there's no code revealed, so I can just guess you don't implement ...
2
votes
Era time is not completing
As stated here: https://github.com/polkadot-js/apps/issues/7607#issuecomment-1129752912
This situation can happen IFF the chain moves to an emergency condition where the election/staking have failed ...
1
vote
Failure of election for next session
Is then the current validation set re-used to solve the problem of missing validators?
Correct.
Is it possible also that such failure arise when the election_multi_phase pallet doesn’t complete an ...
1
vote
Offline validator is being picked in new era (in local chain)
Check if they are in Invulnerables.
1
vote
Accepted
What happens if validator count < minimum_validator_count?
The staking pallet has two storage items to configure this:
ValidatorCount. This is the desired number of validators that staking tries to elect via its ElectionProvider. All of the transactions you ...
1
vote
What are these items in ElectionProviderMultiPhase?
The docs on this pallet may help. As well as reading the signed phase source to see the mechanics more in detail.
The sumbit callable is open to anyone to use, so long as they pass the typical let who ...
Only top scored, non community-wiki answers of a minimum length are eligible