Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove democracy pallet #2685

Merged
merged 14 commits into from
Mar 1, 2024
Merged

Remove democracy pallet #2685

merged 14 commits into from
Mar 1, 2024

Conversation

noandrea
Copy link
Collaborator

@noandrea noandrea commented Feb 27, 2024

What does it do?

Completely remove the democracy pallet

⚠️ Breaking changes ⚠️

  • democracy extrinsics are removed
  • the democracy precompile at address 2051 will always revert.

Migrations

  • clear democracy storage

What important points reviewers should know?

  • the migration will remove all the storage for the democracy pallet, it will not run if there are storage keys left for the Democracy pallet

Is there something left for follow-up PRs?

  • cleanup lazy migrations tests introduced for 2800

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@noandrea noandrea added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D1-runtime-migration PR introduces code that might require downstream chains to run a runtime upgrade. D3-trivial PR contains trivial changes in a runtime directory that do not require an audit breaking Needs to be mentioned in breaking changes labels Feb 27, 2024
Copy link
Contributor

github-actions bot commented Feb 27, 2024

Coverage Report

@@                         Coverage Diff                          @@
##           master   noandrea-remove-democracy-pallet      +/-   ##
====================================================================
+ Coverage   80.33%                             80.43%   +0.10%     
- Files         301                                297       -4     
- Lines       93861                              91636    -2225     
====================================================================
- Hits        75395                              73702    -1693     
- Misses      18466                              17934     -532     
Files Changed Coverage
/node/service/src/chain_spec/moonbase.rs 76.88% (-0.07%) 🔽
/node/service/src/chain_spec/moonbeam.rs 11.74% (+0.03%) 🔼
/node/service/src/chain_spec/moonriver.rs 11.74% (+0.03%) 🔼
/pallets/moonbeam-lazy-migrations/src/lib.rs 89.19% (+18.98%) 🔼
/pallets/moonbeam-lazy-migrations/src/mock.rs 15.71% (+2.26%) 🔼
/precompiles/utils/src/solidity/codec/mod.rs 88.71% (-0.54%) 🔽
/runtime/common/src/migrations.rs 67.96% (+1.78%) 🔼
/runtime/moonbase/src/lib.rs 49.50% (-0.19%) 🔽
/runtime/moonbeam/src/lib.rs 46.05% (-0.15%) 🔽
/runtime/moonriver/src/lib.rs 46.04% (-0.15%) 🔽

Coverage generated Thu Feb 29 20:09:27 UTC 2024

@noandrea noandrea force-pushed the noandrea-remove-democracy-pallet branch from cb6e71a to 96082f3 Compare February 27, 2024 13:28
runtime/common/src/migrations.rs Outdated Show resolved Hide resolved
@noandrea noandrea marked this pull request as ready for review February 29, 2024 10:00
Copy link
Contributor

@elfedy elfedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not entirely familiar with the democracy pallet but I wonder why we didn't handle DepositOf storage at all. Don't we need to return funds or something to the folks that deposited to submit a proposal?

Copy link
Contributor

@links234 links234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not entirely familiar with the democracy pallet but I wonder why we didn't handle DepositOf storage at all. Don't we need to return funds or something to the folks that deposited to submit a proposal?

DepositOf tracks current proposals. There are no proposals and propose extrinsic is disabled so no need to worry about it.

@noandrea noandrea merged commit 85b81ca into master Mar 1, 2024
27 checks passed
@noandrea noandrea deleted the noandrea-remove-democracy-pallet branch March 1, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D1-runtime-migration PR introduces code that might require downstream chains to run a runtime upgrade. D3-trivial PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants