Ankan

Results 20 issues of Ankan

Re add the migration pre and post checks that was removed for PR https://github.com/paritytech/substrate/pull/12230. With @ruseinov's fix for sequential execution of migrate functions https://github.com/paritytech/substrate/pull/12319, we do not need to do...

A0-pleasereview
B0-silent
C1-low ๐Ÿ“Œ
D2-notlive ๐Ÿ’ค

PR https://github.com/paritytech/substrate/pull/12230 introduced HistoryDepth as a config value in staking pallet which bounds several storage item in the pallet. In order to lower this value for a runtime once it...

StakingLedger in the `pallet-staking` is using a hardcoded value of [MaxUnlockingChunks](https://github.com/paritytech/substrate/blob/master/frame/staking/src/lib.rs#L353). Pallet-staking also has a [MaxUnlockingChunks in the configuration](https://github.com/paritytech/substrate/blob/master/frame/staking/src/pallet/mod.rs#L192) which is not used anywhere. I discussed this with @kianenigma, we...

I6-refactor ๐Ÿงน
P5-sometimesoon
Z1-mentor
Q2-easy

This PR will bound `pallet-staking`with `MaxActiveValidators`. It is part of an ongoing effort towards bounding all `pallet-staking` storage items. https://github.com/paritytech/substrate/issues/12187. - Add `BoundedSupports`. - Introduce `MaxWinners` to `ElectionProvider` that bounds...

A0-pleasereview
B3-apinoteworthy
C1-low ๐Ÿ“Œ
D3-trivial ๐Ÿงธ

Related to https://github.com/paritytech/substrate/issues/12847 ### Changes - `ErasStakersClipped` is phased out. Instead we split `Exposure` into multiple pages of Exposure with each page capped to the same size as `ErasStakersClipped`. -...

A0-pleasereview
B7-runtimenoteworthy
C3-medium ๐Ÿ“ฃ
D9-needsaudit ๐Ÿ‘ฎ

This should improve try state running time. We already check that `VoterList::count == Nominators::count + Validators::count` in `fn check_count()` which should give us sufficient safety as well as speed. Should...

A3-inprogress
B0-silent
C1-low ๐Ÿ“Œ
D2-notlive ๐Ÿ’ค

When changes in https://github.com/paritytech/substrate/pull/13023 gets released, we will be relying on `StakingLedger.claimed_rewards` for preventing double claims for older eras (before the release). This code can be cleaned up after 84...

We currently clear state for eras older than `HistoryDepth` by using the fn `map.remove_prefix` which is deprecated. Use `map.clear_prefix` that can be paged. This is how we clear old era...

Z6-mentor
Z1-easy

Companion to https://github.com/paritytech/substrate/pull/13498. Sets maximum page count to 1 for Polkadot and Kusama runtimes. This will mean the new behaviour should stay the same as today. ## TODO - [...

A3-in_progress
C3-medium
D1-audited ๐Ÿ‘
E0-runtime_migration
T1-runtime
B1-note_worthy

* **I'm submitting a ...** - [x] Bug report - [ ] Feature request - [ ] Support request - [ ] Other * **What is the current behavior and...