Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Parachain/thread swapping #1509

Closed
rphmeier opened this issue Jul 31, 2020 · 2 comments · Fixed by #2406
Closed

Parachain/thread swapping #1509

rphmeier opened this issue Jul 31, 2020 · 2 comments · Fixed by #2406
Assignees
Labels
I8-refactor Code needs refactoring.
Milestone

Comments

@rphmeier
Copy link
Contributor

The old registrar removed in #1501 allowed the ability to swap parachains/threads. This kept the ID stable but swapped ownership of all deposits and removed any parathread scheduling.

The Paras and Scheduler modules need to be amended to support swapping. Swaps should occur only at session boundaries and only one swap per ParaId. It could be implemented by simply swapping within the Paras module and then making sure the Scheduler's initializer_on_new_session handler clears all entries from the ParathreadQueue which are not parachains - previously, this was not possible, but a thread<->chain swap makes it a case to account for.

@rphmeier
Copy link
Contributor Author

This is addressed by #2406 to an extent?

@shawntabrizi
Copy link
Member

From what I can read in the description of this issue, this should be fixed by #2406

@rphmeier rphmeier linked a pull request Feb 16, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I8-refactor Code needs refactoring.
Projects
None yet
3 participants