Refactor for AllPalletsWithSystem
#378
Labels
A-runtime
Area: Issues and PRs related to Runtimes
C-enhancement
Category: An issue proposing an enhancement or a PR with one
C-experiment
Category: Experimental feature or tool
Milestone
Currently the hook execution order in our
construct_runtime!
macros isSystem
first then all pallets in reverse order of their declaration defined byAllPalletsReversedWithSystemFirst
We would like to use
AllPalletsWithSystem
meaningSystem
first and then all pallets in the order they are declared in.This means we need to shuffle some of our pallets because some of them are coupled and use each other's functions in their own
on_initialize
hooks. For exampleAuthorship's
on_initialize
hook usesSession's implementation of
find_authorso
Session's
on_initializeshould be executed first. There might be other dependencies that need to be considered when shuffling the declarations in
construct_runtime`This is the original issue - paritytech/substrate#10043
The text was updated successfully, but these errors were encountered: