-
Notifications
You must be signed in to change notification settings - Fork 137
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
Port predicate func from PR 3300 to feature/atree-register-inlining-v0.42 #3394
Port predicate func from PR 3300 to feature/atree-register-inlining-v0.42 #3394
Conversation
This commit is ported from PR #3300 by Bastian Müller, plus some adjustments for Cadence 0.42. This predicate is needed for Cadence 0.42 + atree inlining migration since atree inlining migration runs first and is responsible for fixing broken testnet data. Co-authored-by: Bastian Müller <[email protected]>
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.
Good catch! Thank you for noticing this 👍
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/atree-register-inlining-v0.42 commit 9615ee9 Collapsed results for better readability
|
945f0e6
into
feature/atree-register-inlining-v0.42
This PR ports PR #3300 by @turbolent, plus some adjustments for Cadence 0.42.
Currently, Cadence 0.42 + atree inlining migration fixes all detected broken data, instead of using this predicate function.
Predicate function is used by atree's
FixLoadedBrokenReferences
to limit broken data to be fixed. This function is needed for Cadence 0.42 + atree inlining migration since atree inlining migration runs first and is responsible for fixing broken testnet data.Specifically, flow-go was calling atree's
FixLoadedBrokenReferences
with the default predicate function, so it was fixing all broken data. By passing the ported predicate function to atree, the migration will only fix broken data allowed by the predicate func.See fix_broken_data_migration.go#L92-L95
master
branchFiles changed
in the Github PR explorer