-
Notifications
You must be signed in to change notification settings - Fork 754
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
Some runtime configuration don't whitelist AllPalletsWithSystem::whitelisted_storage_keys()
.
#7018
Comments
If we are doing this wrong, I can assume that downstream is doing the same thing. Would be nice if we could force people to use the |
I agree, I think there is ways to factorize most of the code, so user wouldn't need to think about it. And also remove the duplicate rename (stuff like |
I added #7024 to replace those with But not sure how to
I can try to do that in another PR if have some pointers |
Personally I don't like:
But we should keep it flexible if people have their own implementation, keep the possibility to add whitelisted call. All in all I don't have a clear idea on the exact best API, but it feels not optimal. The best API could be one function call with easy optional argument for majority of cases and allow flexibility for some users with special cases. |
This uses macro callbacks to register all benchmarks with the But it is not optimal for sure 🫠 |
related issue: #7018 replaced duplicated whitelists with `AllPalletsWithSystem::whitelisted_storage_keys();` in this PR --------- Co-authored-by: Guillaume Thiolliere <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
…h#7024) related issue: paritytech#7018 replaced duplicated whitelists with `AllPalletsWithSystem::whitelisted_storage_keys();` in this PR --------- Co-authored-by: Guillaume Thiolliere <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
Usually in the runtime configuration, in the
dispatch_benchmark
implementation, we whitelist the keys as defined by pallets with this call:But several runtime in this repo don't add those whitelist. From a quick search they are missing in all those files.
Instead they whitelist some specific hash like:
It would be better to add the whitelisted keys from pallet and remove the duplicate whitelist.
The text was updated successfully, but these errors were encountered: