Unbrick Phala Network Parachain

2yrs ago
1 Comments

TL;DR. Phala parachain is bricked. The team is requesting a Motion to fast-track a Paras.forceSetCurrentCode call to unbrick the parachain.


Phala Network (id: 2035) became a parachain recently. However, during the progressive launching process, the team noticed that there's no way to upgrade the runtime due to the misconfiguration in the genesis runtime. Specifically, the genesis runtime has both sudo and democracy disabled. Without the help from the relaychain side, the parachain will be "bricked" forever -- all the functions need to be enabled by runtime upgrades which is infeasible due to the problem.

Misconfigration in the runtime

The genesis runtime does have the sudo pallet, but the call was filterred by BaseCall. This is not the intention of the team or the community. So in this commit, it includes the change to add it back. Without sudo enabled in the BaseCall, the team cannot call sudo.Sudo to access the root permission. On the other hand, democracy was also disalbed in the initial launching stage. All the ways to upgrade a runtime are impossible.

Force runtime update on relaychain

The team request to reset the parachain runtime by Paras.forceSetCurrentCode. The team also hope that the proposal can be fast-tracked by the council and the technical committee, because it's aligned with the interest of the Polakdot community.

Without a fast-track, a democracy proposal will take around 2 weeks to be tabled (according to the current democracy scheduling), 4 weeks to be voted, and another 4 weeks to be enacted. There are more than 2451 DOT holders waiting for the release of the crowdloan rewards. The longer the parachain is bricked, the more risk the DOT holders suffers. If the proposal can be fast-tracked, we can quickly solve the problem in 1-2 weeks.

There are also similar cases in the past. The motion 427 unbricked a misconfigured parachain and was fast-tracked to execute in about one week. The team want to follow the same process to resolve the problem.

The team has already released the wasm to update and made the proposal preimage on the relaychain:

Phala's launch plan

Once the launch process is on track again, the team will enable full democracy and remove sudo pallet. Then the assets, bridges, and cloud computing resource incentives will be enabled gradually. Phala aims to provide its bridges, computation and network capacity to the parachains on Polkadot.

Up
Comments
No comments here