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

Fix PoV overestimation when on-runtime-upgrade is run with checks #36

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

liamaharon
Copy link
Contributor

Closes #28

Copy link
Collaborator

@pmikolajczyk41 pmikolajczyk41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this! code looks good

if I understand correctly, state_machine_call_with_proof takes only immutable references/clones, so the second simulation won't be influenced in any way by the first run

btw, there's this old comment: we don't really need any extensions here... is that true? what about situations where a storage migration uses extension for its logic?

@liamaharon
Copy link
Contributor Author

liamaharon commented Sep 26, 2023

if I understand correctly, state_machine_call_with_proof takes only immutable references/clones, so the second simulation won't be influenced in any way by the first run

correct

btw, there's this old comment: we don't really need any extensions here... is that true? what about situations where a storage migration uses extension for its logic?

I'll look into extensions and open an issue to support them if there's a use case. in the mean time, let me know if there're some concrete examples you're thinking

@liamaharon liamaharon merged commit 5cd3686 into main Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PoV estimate is overestimated when running pre/post checks
2 participants