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

draft: attempt to fix code duplication and AllPallets footgun #10046

Closed
wants to merge 2 commits into from

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Oct 18, 2021

Fix #9105

Currently in executive we always handle system pallet manually, instead it should be considered as other pallet.

Also this fix the case where system pallet defines some offchain worker. currently the manual handling of the offchain worker hook for system pallet is missing.

The only usage of AllPallets in substrate is for executive type. So this PR changes AllPallets type to include frame system pallet. and modify executive in order not to call the hook 2 times for system pallet.

@github-actions github-actions bot added the A3-in_progress Pull request is in progress. No review needed at this stage. label Oct 18, 2021
@gui1117 gui1117 changed the title draft: attempt to fix https://github.com/paritytech/substrate/issues/9105 draft: attempt to fix code duplication and AllPallets footgun Oct 18, 2021
@gui1117
Copy link
Contributor Author

gui1117 commented Oct 30, 2021

merged into #10043

@gui1117 gui1117 closed this Oct 30, 2021
@gui1117 gui1117 deleted the gui-improve-all-pallets-usage branch October 30, 2021 13:06
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename AllPallets to AllPalletsWithoutSystem and AllPalletsWithSystem to AllPallet
1 participant