scheduler: handle re-scheduling around finalization correctly (#2257)
* scheduler: handle re-scheduling around finalization correctly * also make sure parathreads get cleaned * run scheduling in finalization * Remove stray println! * Update the schedule call site in inclusion inherent * Clarify subtlety around SessionStartBlock * Remove double semi-colon * reschedule prior to `availability_cores` and in on-initialize * improve docs * fix line * more doc reformat * remove unneeded call * avoid unnecessary scheduling on initialize * split `clear` and `schedule * Update runtime/parachains/src/scheduler.rs Co-authored-by:Sergei Shulepov <sergei@parity.io> Co-authored-by:
Sergei Shulepov <sergei@parity.io>
Showing
- polkadot/primitives/src/v1.rs 5 additions, 5 deletionspolkadot/primitives/src/v1.rs
- polkadot/roadmap/implementers-guide/src/runtime-api/availability-cores.md 2 additions, 2 deletions.../implementers-guide/src/runtime-api/availability-cores.md
- polkadot/roadmap/implementers-guide/src/runtime-api/validator-groups.md 2 additions, 2 deletions...ap/implementers-guide/src/runtime-api/validator-groups.md
- polkadot/roadmap/implementers-guide/src/runtime/inclusioninherent.md 2 additions, 1 deletion...admap/implementers-guide/src/runtime/inclusioninherent.md
- polkadot/roadmap/implementers-guide/src/runtime/scheduler.md 11 additions, 7 deletionspolkadot/roadmap/implementers-guide/src/runtime/scheduler.md
- polkadot/runtime/parachains/src/inclusion_inherent.rs 5 additions, 1 deletionpolkadot/runtime/parachains/src/inclusion_inherent.rs
- polkadot/runtime/parachains/src/runtime_api_impl/v1.rs 9 additions, 2 deletionspolkadot/runtime/parachains/src/runtime_api_impl/v1.rs
- polkadot/runtime/parachains/src/scheduler.rs 233 additions, 42 deletionspolkadot/runtime/parachains/src/scheduler.rs
Please register or sign in to comment