-
Notifications
You must be signed in to change notification settings - Fork 350
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
Fix notify inactive collators failures at the end of a round #3128
Fix notify inactive collators failures at the end of a round #3128
Conversation
WASM runtime size check:Compared to target branchMoonbase runtime: 2284 KB (no changes) ✅ Moonbeam runtime: 2256 KB (no changes) ✅ Moonriver runtime: 2256 KB (no changes) ✅ Compared to latest release (runtime-3400)Moonbase runtime: 2284 KB (+256 KB compared to latest release) Moonbeam runtime: 2256 KB (+244 KB compared to latest release) Moonriver runtime: 2256 KB (+244 KB compared to latest release) |
For optimization purposes (knowing that Storage/PoV is usually the limiting factor), shouldn't we store those who didn't have stake. Instead of |
Coverage Report@@ Coverage Diff @@
## master manuel/notify-inactive-collators-works-only-at-the-beginning-of-a-round +/- ##
===========================================================================================================
+ Coverage 74.40% 74.44% +0.04%
Files 376 376
+ Lines 95432 95632 +200
===========================================================================================================
+ Hits 70998 71193 +195
+ Misses 24434 24439 +5
|
Yes, having a pub type WasInactive<T: Config> =
StorageDoubleMap<_, Twox64Concat, RoundIndex, Twox64Concat, T::AccountId, (), OptionQuery>; When starting a new round, we would check the inactivity like the example below, where moonbeam/pallets/parachain-staking/src/lib.rs Lines 1427 to 1430 in fef3821
We would still clear the storage after |
…y-at-the-beginning-of-a-round
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.
After putting some thought into the mark_collators_as_inactive
weights, the over-estimation is probably not necessary, instead we should add a num_of_collators
argument to the mark_collators_as_inactive
benchmark.
Nice! Addressed in b66ec1f |
What does it do?
Addresses issue #3100 for which "notify_inactive_collator" only works at the beginning of a round.
What important points reviewers should know?
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?