Fix PRdoc that have been previously drafted with older schema (#2623)

Several PRs started introducing `prdoc` files before the schema was
final.
This PR fixes those former prdoc to ensure that pass the check and
comply with the current prdoc schema.

---------

Co-authored-by: command-bot <>
This commit is contained in:
Chevdor
2023-12-05 17:29:13 +01:00
committed by GitHub
parent 20eaad9d48
commit 5dd6a4ba47
10 changed files with 35 additions and 45 deletions
+8 -7
View File
@@ -4,25 +4,26 @@
title: Supporting paged rewards allowing all nominators to be rewarded
doc:
- audience: Validator
- audience: Node Operator
description: |
We used to clip top `MaxNominatorRewardedPerValidator` nominators by stake that are eligible for staking reward.
This was done to limit computation cost of paying out rewards. This PR introduces paging to reward payouts,
meaning we still clip nominators upto MaxExposurePageSize per page and there could be multiple pages of rewards to
be paid out. Validators get commission pro-rata to the amount of reward that is paid out for the page.
notes:
- payout_stakers should be called multiple times, once for each page of nominators.
- payout_stakers_by_page can be used to pay out rewards for a specific page.
- Some old non-paged era storage items are deprecated, and can be removed in a future upgrade.
notes:
- payout_stakers should be called multiple times, once for each page of nominators.
- payout_stakers_by_page can be used to pay out rewards for a specific page.
- Some old non-paged era storage items are deprecated, and can be removed in a future upgrade.
migrations:
db: []
runtime:
- { pallet: "pallet-staking", description: "v14: Migration of era exposure storage items to paged exposures."}
- reference: pallet-staking
description: "v14: Migration of era exposure storage items to paged exposures."
crates:
- name: pallet-staking
host_functions: []
host_functions: []