Skip to content
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

Do not reward whitelisted validators #795

Merged
merged 20 commits into from
Jan 17, 2025

Conversation

tmpolaczyk
Copy link
Contributor

@tmpolaczyk tmpolaczyk commented Jan 2, 2025

Whitelisted validators are set by root and they do not exist in the ethereum world. Dancelight rewards are minted in ethereum. Therefore, it does not make sense to reward whitelisted validators, as they won't be able to claim that reward.

Copy link
Contributor

github-actions bot commented Jan 2, 2025

WASM runtime size check:

Compared to target branch

dancebox runtime: 1420 KB (no changes) ✅

flashbox runtime: 824 KB (no changes) ✅

dancelight runtime: 2160 KB (no changes) ✅

container chain template simple runtime: 1124 KB (no changes) ✅

container chain template frontier runtime: 1400 KB (no changes) ✅

Copy link
Contributor

github-actions bot commented Jan 2, 2025

Coverage Report

(master)

@@                        Coverage Diff                         @@
##           master   tomasz-whitelisted-not-rewarded     +/-   ##
==================================================================
  Coverage   65.59%                            65.59%   0.00%     
  Files         331                               331             
+ Lines       57998                             58048     +50     
==================================================================
+ Hits        38041                             38071     +30     
+ Misses      19957                             19977     +20     
Files Changed Coverage
/chains/orchestrator-relays/runtime/dancelight/src/lib.rs 68.09% (-0.14%)
/chains/orchestrator-relays/runtime/dancelight/src/weights/pallet_external_validators.rs 20.69% (+20.69%)
/pallets/external-validators/src/lib.rs 90.44% (-0.63%)
/pallets/external-validators/src/weights.rs 10.34% (-1.66%)
/pallets/external-validators-rewards/src/lib.rs 89.10% (+0.36%)

Coverage generated Fri Jan 17 09:52:07 UTC 2025

@tmpolaczyk tmpolaczyk marked this pull request as ready for review January 8, 2025 09:57
@tmpolaczyk tmpolaczyk added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Jan 8, 2025
Copy link
Contributor

@girazoki girazoki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good @tmpolaczyk , a few nitpicks on naming &/ a bit more unitest, but other than that looks good

@tmpolaczyk tmpolaczyk merged commit ec6c96f into master Jan 17, 2025
42 checks passed
@tmpolaczyk tmpolaczyk deleted the tomasz-whitelisted-not-rewarded branch January 17, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants