pub async fn start_slot_worker<B, C, W, SO, CIDP, Proof>(
    slot_duration: SlotDuration,
    client: C,
    worker: W,
    sync_oracle: SO,
    create_inherent_data_providers: CIDP
)
Expand description

Start a new slot worker.

Every time a new slot is triggered, worker.on_slot is called and the future it returns is polled until completion, unless we are major syncing.