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

Migration design #7

Open
hackfisher opened this issue Jun 6, 2024 · 0 comments
Open

Migration design #7

hackfisher opened this issue Jun 6, 2024 · 0 comments

Comments

@hackfisher
Copy link

Regarding the transition from old Staking to new Staking, direct migration is not supported, because it may take a long time to clear. Therefore, you can consider setting a transition period of 2 months, time_since_upgrade_start / 2 months * settings_collator_count uses the new one, and the rest uses the old one.

After 2 months, the old Staking can be runtime_migrated, the legacy RING is returned to the user, and the collator Staking is deleted.

For the settings_collator_count read, the new collator contract returns an error or is insufficient (the insufficient part is filled with 0x0), it is recommended to use the backup address to cyclically fill the empty address. (The backup address is filled with the technical committee address or the development team, and the session key needs to be set in advance, so that it can be backed up at any time)

Deposit supports long-term direct migration to new contract by adding a new migrate runtime call.

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

No branches or pull requests

1 participant