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

Para upgrade blocks offboarding #6023

Closed
slumber opened this issue Sep 18, 2022 · 2 comments · Fixed by #6032
Closed

Para upgrade blocks offboarding #6023

slumber opened this issue Sep 18, 2022 · 2 comments · Fixed by #6032
Assignees
Labels
T5-parachains_protocol This PR/Issue is related to Parachains features and protocol changes.

Comments

@slumber
Copy link
Contributor

slumber commented Sep 18, 2022

This restriction was introduced in #4360:

// Disallow offboarding in case there is an upcoming upgrade.
//
// This is not a fundamential limitation but rather simplification: it allows us to get
// away without introducing additional logic for pruning and, more importantly, enacting
// ongoing PVF pre-checking votes. It also removes some nasty edge cases.
//
// This implicitly assumes that the given para exists, i.e. it's lifecycle != None.
if FutureCodeHash::<T>::contains_key(&id) {
return Err(Error::<T>::CannotOffboard.into())
}

However, runtime only processes an upgrade when a para progresses, if it never does after receiving a GoAhead signal, then there's no way to offboard it.

What actually I suppose was meant in a mentioned PR is to disallow offboarding while there's an ongoing pvf prechecking process, which is totally fine, it finishes rather quickly or at worst times out.

@slumber
Copy link
Contributor Author

slumber commented Sep 18, 2022

cc @pepyakin

@eskimor eskimor moved this to To do in Parachains-core Sep 19, 2022
@eskimor eskimor added the T5-parachains_protocol This PR/Issue is related to Parachains features and protocol changes. label Sep 19, 2022
@pepyakin
Copy link
Contributor

Yes, good call!

Repository owner moved this from To do to Done in Parachains-core Sep 26, 2022
@slumber slumber self-assigned this Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T5-parachains_protocol This PR/Issue is related to Parachains features and protocol changes.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants