Expose ClaimQueue via a runtime api and use it in collation-generation (#3580)

The PR adds two things:
1. Runtime API exposing the whole claim queue
2. Consumes the API in `collation-generation` to fetch the next
scheduled `ParaEntry` for an occupied core.

Related to https://github.com/paritytech/polkadot-sdk/issues/1797
This commit is contained in:
Tsvetomir Dimitrov
2024-03-20 08:55:58 +02:00
committed by GitHub
parent e659c4b3f7
commit e58e854a32
15 changed files with 532 additions and 52 deletions
+13
View File
@@ -0,0 +1,13 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
title: Expose `ClaimQueue` via a runtime api and consume it in `collation-generation`
doc:
- audience: Node Dev
description: |
Creates a new runtime api exposing the `ClaimQueue` from `scheduler` pallet. Consume the api
in collation generation (if available) by getting what's scheduled on a core from the
`ClaimQueue` instead of from `next_up_on_available` (from `AvailabilityCores` runtime api).
crates: [ ]