Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Write a Memory/PoV/Weight safe, sub-optimal ElectionProvider #10334

@kianenigma

Description

@kianenigma

Something that is not really elegant, but can be safely used in parachains.

We need to do dpos-style voting, where votes are simply distributed between target validators equally.

Moreover, there should be no tallying of votes at the end. In other words, we should never need to read all the votes into memory at once. Instead, we should update a scoreboard on the fly, as new votes come in. This will still not be infinitely scalable, but will do better than the current snapshot-based model.

We also need to alter pallet-staking to be able to work with this new type of election-provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    J1-metaA specific issue for grouping tasks or bugs of a specific category.Z3-substantialCan be fixed by an experienced coder with a working knowledge of the codebase.

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions