Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Safe Mode capability #72

Closed
3 tasks
stiiifff opened this issue Sep 11, 2023 · 3 comments · Fixed by #94
Closed
3 tasks

Safe Mode capability #72

stiiifff opened this issue Sep 11, 2023 · 3 comments · Fixed by #94
Assignees
Labels
enhancement New feature or request

Comments

@stiiifff
Copy link
Contributor

stiiifff commented Sep 11, 2023

Having the ability to temporarily pause transfers & normal operations on a live parachain is a valuable mechanism, when an issue / attack occurs. This is especially useful during the launch period of a parachain whereby the runtime code might not always have been battle-tested yet. Past this initial period, the chain’s Governance body (or Sudo account(s)) could decide to remove this capability to fully decentralize the network. The Substrate FRAME library contains the SafeMode & TxPause pallets which allow to implement such a mechanism.

  • Integrate the FRAME SafeMode & TxPause pallets with sane defaults in both devnet & mainnet runtimes (disabled by default in both runtimes).
  • SafeMode should only allow balance transfers as whitelisted call. Permissionless operations (enter, extend) should be disabled. Only a privileged origin can enable / disable safe mode: ForceEnterOrigin, ForceExtendOrigin & ForceExitOrigin to be configured as the Root origin (Sudo).
  • TxPause PauseOrigin & UnpauseOrigin to be configured as the Root origin (Sudo).

Depends on #71

@stiiifff stiiifff added the enhancement New feature or request label Sep 11, 2023
@stiiifff stiiifff added this to the EPT Q3-Q4 2023 milestone Sep 11, 2023
@Daanvdplas
Copy link
Contributor

Daanvdplas commented Sep 13, 2023

I would like to take this one :)

Edit: will need to wait for v1.1.0

@Moliholy
Copy link
Contributor

@Daanvdplas Do you still want to pick up this issue? I just completed the equivalent issue for Trappist, so I thought to complete it here.

@Daanvdplas
Copy link
Contributor

Go for it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants