-
Notifications
You must be signed in to change notification settings - Fork 51
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
Store collator fullness in collator_assignment pallet #672
Conversation
Coverage Report@@ Coverage Diff @@
## master tomasz-store-collator-fullness +/- ##
=================================================================
Coverage 67.20% 67.20% 0.00%
Files 262 262
+ Lines 46899 46906 +7
=================================================================
+ Hits 31515 31519 +4
+ Misses 15384 15387 +3
|
NO migration required because we only write data right? (we dont read it) |
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 would approve it with a typescript test :)
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.
LGTM
Count number of collators assigned to any chain, divide that by
max_collators
and store the resulting ratio in pallet storage. In the future, that value will be used together withtarget_container_chain_fullness
to adjust some params that are based on usage.