Open kianenigma opened 2 years ago
Monthly update notes: https://gist.github.com/kianenigma/aa835946455b9a3f167821b9d05ba376
Almost everything needed for this work is now done and tested in my WIP branch. I've updated the main task list with 4 major steps of how this should be backported to the master branch.
about reading relay chain state from parachain: https://github.com/paritytech/polkadot-sdk/issues/82
@gpestana @Ank4n is this still needed? If you have a newer version, please close and link here.
Non-technical overview
parent of paritytech/substrate#6242.
Task List
(expect this to grow and change over time)
Main track
ElectionDataProvider
:remaining: PageIndex
to the interfaces, and make pallet-staking understand it.iter_from()
for this to work.ElectionProvider
: @emostovfn elect
toBoundedSupportsOf<_>
.MaxBackersPerWinner
.storage_info
for staking.ElectionProvider
:remaining: PageIndex
to the interface and make pallet-staking understand it.MaxWinnersPerPage
.pallet-election-provider-multi-block
pallet-election-provider-multi-block
: takes care of phase rotation and snapshot managementpallet-verifier
: takes care of verifying solutions in one or more blockspallet-signed
.pallet-unsigned
.Other misc. worthy of being backported
sort
andremove_weakest_sorted
fromNposSolution
. Test them well, but don't use them anywhere.Nice to have
MaxEncodedLength
forNposSolution
: https://github.com/paritytech/substrate/pull/11032VoterIndex = u16
. Unless of voter page per snapshot is more than 65k, which it will never be, we can drastically reduce the size of the solution via this simple tweak.ElectionProvider
andElectionDataProvider
to use associated types forAccountId
andBlockNumber
, for nicer visuals and consistent API. https://github.com/paritytech/substrate/pull/10475ErasStakersClipped
toon_idle
. We have a full era to make sure it is filled, and even if not, it is not a consensus critical operation.Hygiene
CompactSoltuion
to anything else that does not have the keywordCompact
in it. That's very confusing. paritytech/substrate#9442ElectionProvider
andElectionDataProvider
traits, instead to the benchmarking accurately. https://github.com/paritytech/substrate/pull/9569