-
Notifications
You must be signed in to change notification settings - Fork 5
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
Futurepass storage mapping - update Holders hashing algo #682
base: main
Are you sure you want to change the base?
Conversation
a93f5ba
to
64c0b72
Compare
be3c28a
to
2804ca9
Compare
How does the migration do on the production data? I was curious if this is subject to similar issues to the one we saw on the last fpass migration |
I didnt do a production test on the previous fpass migration. |
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.
Nice work! Few small things but looks good overall
if onchain == 1 { | ||
return Ok(crate::Vec::new()) | ||
} | ||
assert_eq!(onchain, 0); |
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.
Does this assert not do essentially the same as onchain == 1 above?
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.
not sure, i copied this part from a previous migration
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.
The code looks good. need to run some tests and get the numbers.
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.
Great implementation! Very clever way to check and verify the low level storages before and after the migration. It looks good to me.
2804ca9
to
65a3c29
Compare
changes are due to rebase from |
65a3c29
to
d4e4ec4
Compare
d4e4ec4
to
4996f74
Compare
Changelog
Addresses https://futureverse.atlassian.net/browse/TRN-159
Core changes
Holders
andDefaultProxy
storage map hashing algorithms fromTwox64Concat
toBlake2_128Concat
DefaultProxy
should not need to get migrated because it has no entriesHolders
mapping - which migrates allHolders
underlying storage keys(~200,000 keys for Root)