-
Notifications
You must be signed in to change notification settings - Fork 773
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
[FRAME] Execution phases ApplyInherent
and AfterInherent
#3666
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
998d9f8
to
8e0bca6
Compare
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@@ -601,8 +601,8 @@ where | |||
DispatchClass::Mandatory, | |||
); | |||
|
|||
frame_system::Pallet::<System>::note_finished_initialize(); | |||
<System as frame_system::Config>::PreInherents::pre_inherents(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here you wanna have it within Initialization
phase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe some extra PreInherent
phase? Similar to the AfterInherent
one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe adding one more phase PreInherent
would be a good idea, otherwise it looks good to me.
@@ -601,8 +601,8 @@ where | |||
DispatchClass::Mandatory, | |||
); | |||
|
|||
frame_system::Pallet::<System>::note_finished_initialize(); | |||
<System as frame_system::Config>::PreInherents::pre_inherents(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe some extra PreInherent
phase? Similar to the AfterInherent
one.
Follow up on #1781
Changes:
ApplyInherent(u32)
andAfterInherent
.System::note_after_inherents_done
to be called by Executive after running allafter_inherents
logic.on_poll
hook.pre_inherents
into the Initialization phase instead ofApplyExtrinsic
.