-
Notifications
You must be signed in to change notification settings - Fork 54
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
Refactor on_container_author_noted hook to take a Vec #787
Conversation
WASM runtime size check:Compared to target branchdancebox runtime: 1420 KB (+4 KB) flashbox runtime: 824 KB (no changes) ✅ dancelight runtime: 2160 KB (+8 KB) container chain template simple runtime: 1124 KB (no changes) ✅ container chain template frontier runtime: 1400 KB (no changes) ✅ |
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 think it looks good. Just double checking:
- we dont need migrations
- changing the order (iterate over paras vs iterate over pallets first) does not affect
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.
Looks good to me!
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.
Looks good to me! 👏
To get a more accurate weight, it's better to have a function that takes a list of n chains to reward than to call a function n times.
Should be a refactor but there are some observable changes: