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

feature flag to disable consequential Gov V1 hooks #14708

Closed
wants to merge 1 commit into from

Conversation

liamaharon
Copy link
Contributor

paritytech/polkadot#7314 requires us to temporarily restore Gov V1 pallets to the runtime.

We need the pallets to be entirely benign.

We can disable Calls using exclude_parts {Call}, but still need to prevent hooks from being called.

It was agreed during the last FRAME team call to add a feature flag which would disable hooks we don't want to run. There may be better approaches to disabling hooks (such as creating a new part we can use in exclude_parts, but that would likely take a long time to implement and unlocking the Gov V1 funds is time sensitive.

@liamaharon liamaharon added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T1-runtime This PR/Issue is related to the topic “runtime”. labels Aug 4, 2023
@liamaharon liamaharon requested review from a team August 4, 2023 06:27
@liamaharon liamaharon added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Aug 4, 2023
@liamaharon liamaharon marked this pull request as draft August 4, 2023 07:20
@liamaharon
Copy link
Contributor Author

liamaharon commented Aug 4, 2023

Going to spend more time trying to remove pallets from construct_runtime! as suggested by Basti. Converting this to a draft in the meantime.

@liamaharon
Copy link
Contributor Author

Superseded by approach laid out in #14773

@liamaharon liamaharon closed this Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-in_progress Pull request is in progress. No review needed at this stage. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant