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

New, more flexible try-runtime runtime apis #3499

Open
liamaharon opened this issue Feb 28, 2024 · 0 comments
Open

New, more flexible try-runtime runtime apis #3499

liamaharon opened this issue Feb 28, 2024 · 0 comments
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework. T4-runtime_API This PR/Issue is related to runtime APIs.

Comments

@liamaharon
Copy link
Contributor

Existing try-runtime apis accept little to no configuration.

This means when we want to change the behavior of calling one of these apis, it requires adding complexity to the runtime, and in some cases waiting for new runtime upgrades to occur.

e.g.

  • Configuration of which try-state checks to run should be configurable by the user, instead of us getting stuck with inoperable checks until the next runtime upgrade
  • Instead of Skip System::Events in TryDecodeEntireState #2560 requiring a new pallet macro, the user should be able to pass a whilelist and/or blacklist of storage items they want to attempt to decode

This is less than ideal. It would be better if runtime apis allowed greater customisation of what happens. Once added, old runtime apis should be deprecated and eventually removed.


also see discussion at #2108

@liamaharon liamaharon added T1-FRAME This PR/Issue is related to core FRAME, the framework. T4-runtime_API This PR/Issue is related to runtime APIs. labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework. T4-runtime_API This PR/Issue is related to runtime APIs.
Projects
None yet
Development

No branches or pull requests

1 participant