-
Notifications
You must be signed in to change notification settings - Fork 672
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: quick workaround for flat storage memtrie comparison #12592
fix: quick workaround for flat storage memtrie comparison #12592
Conversation
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.
LGTM
Approving to unblock but it would also be nice to assert that we actually executed at least one check.
if let FlatStorageStatus::Ready(status) = client | ||
.chain | ||
.runtime_adapter | ||
.get_flat_storage_manager() |
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.
mini nit: you also need the manager a few lines below, maybe move to a variable
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.
^ just found out that trie_sanity_check.check_epochs
checks that at least one comparison happened
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12592 +/- ##
=======================================
Coverage 70.18% 70.18%
=======================================
Files 840 840
Lines 169987 169987
Branches 169987 169987
=======================================
+ Hits 119299 119304 +5
+ Misses 45621 45616 -5
Partials 5067 5067
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quick fix to allow state comparison between flat storage and memtries only when the view over key value pairs is at the same height, for both of them.