Polkassembly Logo

Head 1
Head 2
Head 3
Head 4
Create Pencil IconCreate
TRACKS
ORIGINS
Report an issueNeed help with something?
Foot 1
Foot 2
Foot 3
Foot 4
OpenGov
View All Discussion

Unbrick Phala Network Parachain

h4x3rotab
3 years ago

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:

  • Preimage: 0x7af427aa7665a073ca61b83c04791f185d9170ea2e49a8a7be323650cea8b75f
  • Code: phala_parachain_runtime.compact.compressed.wasm.

Image

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.

Comments (1)

3 years ago

Preimage submitted: https://polkadot.subscan.io/extrinsic/0xbc2cd775b93999e5a1def5b3a8d31e6dd9f2f13844428d1967877068cdb1ec99

PleaseLogin to comment

Help Center

Report an Issue
Feedback
Terms and Conditions
Github

Our Services

Docs
Terms of Website
Privacy Policy

A House of Commons Initiative.

Polka Labs Private Limited 2025

All rights reserved.

Terms and ConditionsTerms of Website
Privacy Policy