Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description This PR applies missing staking migrations with some changes in v9 and v11: 1. The migration to v9 has been altered to set the next pallet version only. The remaining parts are not needed because we are already using VoterList and it's in good condition. To change the migration, the source code has been moved from workplace dependencies to the Cere repo. 2. In migration to v11, there is no need to move data from BagsList to VoterList since we are already using VoterList. Instead, BagsList should be removed. 3. Benchmarking and Clippy checks are disabled for the sake of time. 4. Apply migrations to v8, v10, v12, v13. Notes: 1. BagsList has been migrated to VoterList in [v4.1.0](https://github.com/Cerebellum-Network/blockchain-node/compare/v4.0.0..v4.1.0#diff-8979c26ba42edc867488ec32089e6e48df0774444fe9a4726a09d129545060dbR1347) but the migration was not written and executed properly. 2. Staking pallet changes can be reviewed with `diff -r substrate/frame/staking blockchain-node/pallets/staking` or with [kdiff3](https://kdiff3.sourceforge.net/) if one prefers graphical UI. In both cases, you must have [Substrate](https://github.com/paritytech/substrate) locally. 3. To get back to the original staking pallet, [b80f635](b80f635), [5c8fcbd](5c8fcbd), and [1b71aa8](1b71aa8) should be reverted ### Types of Changes <!--- What types of changes does your code introduce? --> - [ ] Tech Debt (Code improvements) - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Dependency upgrade (A change in substrate or any 3rd party crate version) ### Migrations and Hooks <!--- Check the following box with an x if the following applies: --> - [ ] This change requires a runtime migration. - [ ] Modifies `on_initialize` - [ ] Modifies `on_finalize` ### Checklist <!--- All boxes need to be checked. Follow this checklist before requiring PR review --> - [x] Change has been tested locally. - [ ] Change adds / updates tests. - [ ] Changelog doc updated.
- Loading branch information