-
Notifications
You must be signed in to change notification settings - Fork 88
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
Remove duplicate metadata from pool-system #1285
Conversation
@mustermeiszer @lemunozm This is targeting the branch to add pools to Centrifuge since it will conflict with that branch, and since we need to make sure to include it as part of the final inclusion of the loans refactor + release. As long as this ships to altair in the same release as the loans refactor (or at least, ships after we delete the existing test pool but before we add a new one), we don't need to bother with a 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.
LGTM!
we don't need to bother with a migration.
Do you mean now? We are modifying the pools storage, although we are not shipping this to altair
, we need to do some kind of migration for altair
before we launch there, isn't it?
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! But we need a migration for Altair, right?
I think I misunderstood how much of the pools/loans storage we were removing, I had assume we would nuke the whole testing pool from Altair. If we're only going to do loans, then we will indeed need a migration here. I got the migration half done already before I had the realization about removing storages, so I'll get it wrapped up and pushed 👍 |
Since this is no longer tied to the loans refactor/release schedule, I'm going to retarget it at |
904e76e
to
75886b3
Compare
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.
Can we maybe even nuke the storage? Easier to migrate, but the migration itself already looks good at the first view.
pub enum Release { | ||
V0, | ||
V1, | ||
} | ||
|
||
impl Default for Release { | ||
fn default() -> Self { | ||
Self::V0 | ||
} | ||
} |
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.
Can we use the new versioning that is automatically supported for pallets. Cc @wischli for how this works ^^
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.
My understanding of that is that its based around the crate's version number. We... don't really use/maintain those right now. I agree we should move to the new versioning, though.
My thought was that we'll need to figure out some sort of versioning / release-stream system anyway once pools are on cent-chain (because we won't want new features to land simultaneously on altair & cfg). We should roll pallet versioning into that, and then we can switch to the new pallet version storage. WDYT? (again /cc @wischli )
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.
I think it is a basic u16 value.
As far as nuking goes, that's more complicated (many additional storage keys) and involves two pallets (this one and |
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.
I would merge this directly after #1233.
75886b3
to
cba8e6b
Compare
Description
Remove duplicate metadata hash stored in the
Fixes #1261
Changes and Descriptions
pool-system
palletpool-system
Checklist: