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.

Allow for a dynamic number of nominators #12968

@gpestana

Description

@gpestana

Task: Replace the maximum allowed number of nominations per nominator with a dynamic maximum based on the account's state (e.g. balance) by defining a typ NominationsQuota that returns the max number of nominations allowed for a given account.

Both the number of targets and nominators (and respective nominations) impacts the size of the snapshot, thus the size of the snapshot may become critically large if the number of votes per nominator are large. Thus, the number of voters that are taken for the election snapshot must be dynamic over the number of nominators and respective nominations.

Related to and reviving this PR and discussion #10340

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions