Adds new event phase `Initialization` (#5302)
* Adds new event phase `Initialization` Every event that was deposited inside of `on_initialize` was assigned to the `ApplyExtrinsic(0)` phase which wasn't correct. This pr introduces a new phase `Initialization`. This is the new phase while initializing a block. After initialization we switch to `ApplyExtrinsic(N)` and at the end to `Finalization` as before. * Set `ExecutionPhase` in `initialize` * Increment `spec_version`
Showing
- substrate/frame/collective/src/lib.rs 13 additions, 13 deletionssubstrate/frame/collective/src/lib.rs
- substrate/frame/contracts/src/tests.rs 52 additions, 52 deletionssubstrate/frame/contracts/src/tests.rs
- substrate/frame/executive/src/lib.rs 2 additions, 0 deletionssubstrate/frame/executive/src/lib.rs
- substrate/frame/offences/src/tests.rs 2 additions, 2 deletionssubstrate/frame/offences/src/tests.rs
- substrate/frame/system/src/lib.rs 27 additions, 4 deletionssubstrate/frame/system/src/lib.rs
Please register or sign in to comment