mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 15:11:03 +00:00
Replace StartWork and StopWork with an ActiveLeavesUpdate signal (#1431)
This commit is contained in:
committed by
GitHub
parent
42ddcada02
commit
5be366d6dc
@@ -50,8 +50,12 @@ The subsystem should maintain a set of handles to Block Authorship Provisioning
|
||||
|
||||
### On Overseer Signal
|
||||
|
||||
- `StartWork`: spawn a Block Authorship Provisioning Job with the given relay parent, storing a bidirectional channel with that job.
|
||||
- `StopWork`: terminate the Block Authorship Provisioning Job for the given relay parent, if any.
|
||||
- `ActiveLeavesUpdate`:
|
||||
- For each `activated` head:
|
||||
- spawn a Block Authorship Provisioning Job with the given relay parent, storing a bidirectional channel with that job.
|
||||
- For each `deactivated` head:
|
||||
- terminate the Block Authorship Provisioning Job for the given relay parent, if any.
|
||||
- `Conclude`: Forward `Conclude` to all jobs, waiting a small amount of time for them to join, and then hard-exiting.
|
||||
|
||||
### On `ProvisionerMessage`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user