-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NPoS] Paging reward payouts in order to scale rewardable nominators #1189
Merged
Merged
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6827b66
squashed paged reward changes
Ank4n 4738d9d
fix use different param
Ank4n 913e945
Merge branch 'master' into ankan/paged-rewards
Ank4n 89dd5cf
Merge branch 'master' into ankan/paged-rewards
pepoviola 382f07c
Merge branch 'master' into ankan/paged-rewards
Ank4n dc9eb32
Merge branch 'master' into ankan/paged-rewards
Ank4n dbef906
remove years from license
Ank4n b3c12f8
Merge branch 'master' into ankan/paged-rewards
Ank4n 03c9024
format readme
Ank4n 95fc852
zepter format
Ank4n 4896403
rename PageIndex to Page
Ank4n 65807d8
Merge branch 'master' into ankan/paged-rewards
rossbulat e580b29
Merge branch 'master' into ankan/paged-rewards
Ank4n 2a30f2c
fix test for multi page rewards
Ank4n 21fb301
fmt
Ank4n 43f56b5
comments for MaxNominators
Ank4n d09eea2
Merge branch 'master' into ankan/paged-rewards
Ank4n 7d75e22
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
efc3968
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
cb33637
".git/.scripts/commands/bench/bench.sh" --subcommand=runtime --runtim…
b755ac6
add prdoc
Ank4n 181aac3
Merge branch 'master' into ankan/paged-rewards
Ank4n 6603458
set MaxNominators to one page of nominators
Ank4n File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/paritytech/substrate/pull/13498/files/29f800bf4eaa0d4d9a837591461e7ee6e438679f..ec0694bfb69c5625ba6d2fe76da8e0446dcd71d7#r1299430753
https://github.com/paritytech-secops/srlabs_findings/issues/2#issuecomment-1685860874
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a pretty bad name? I belive what
pallet_babe
wants to convey here isMaxNominatorsPerValidator
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, indeed, the correct value for this should be something like
max_pages * page_size
, but I trust that this will come in a follow-up.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its terrible but its just more apparent now :(.
MaxNominatorRewardedPerValidator
was also wrong and exactly same thing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a comment about this in the code. Not sure what else I can do in the scope of current PR.