-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Storage rent and tombstones #103
Comments
Further clarifications:
|
About parachains turning into threads when their lease expires, provided the chain hasn't prepared (whole team has died in a bus accident, but people are still using the chain). From Shawn:
|
There are two implementations of this.
In smart contracts, the system will function just like in Eth where you restore a contract for a price, from an archive node. This is documented in the substrate dev docs: https://substrate.dev/docs/en/ecosystem/contracts/ink#storage-rent\
There exists also the tombstoning concept of parathreads (and possibly chains?). A dead chain / thread will have its last block registered on the relay chain it's attached to. If all collators die, then that block becomes a tombstone. In such a case, all that's needed to restore this thread/chain to life if there ever appears a need to do this again is by paying the restore fee (explain? To whom? How?) and continuing to build on it as a revived collator. For this to happen, archive nodes are necessary (archive of what - the parachain / thread? Isn't that every collator basically?).
Further explanation necessary on what happens with hierarchical chains / threads. Consider a relay parachain with parathreads and child chains. So, say their blocks are being stored on the relay chain, and then one such sub-chain or sub-thread dies (no collators). It can be restored via the mechanics outlined above, that's ok. But what if our relay parachain dies - the one keeping the last block of this thread/chain? How do you restore that? You would first need to somehow restore the relay parachain to get the last block of its children, and then restore those? Again, to whom are the restore fees paid?
Further reading:
The text was updated successfully, but these errors were encountered: