mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 08:31:14 +00:00
Runtime API: introduce candidates_pending_availability (#4027)
Fixes https://github.com/paritytech/polkadot-sdk/issues/3576 Required by elastic scaling collators. Deprecates old API: `candidate_pending_availability`. TODO: - [x] PRDoc --------- Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
@@ -1795,6 +1795,7 @@ sp_api::impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn candidate_pending_availability(para_id: ParaId) -> Option<CommittedCandidateReceipt<Hash>> {
|
||||
#[allow(deprecated)]
|
||||
parachains_runtime_api_impl::candidate_pending_availability::<Runtime>(para_id)
|
||||
}
|
||||
|
||||
@@ -1908,6 +1909,10 @@ sp_api::impl_runtime_apis! {
|
||||
fn claim_queue() -> BTreeMap<CoreIndex, VecDeque<ParaId>> {
|
||||
vstaging_parachains_runtime_api_impl::claim_queue::<Runtime>()
|
||||
}
|
||||
|
||||
fn candidates_pending_availability(para_id: ParaId) -> Vec<CommittedCandidateReceipt<Hash>> {
|
||||
vstaging_parachains_runtime_api_impl::candidates_pending_availability::<Runtime>(para_id)
|
||||
}
|
||||
}
|
||||
|
||||
#[api_version(3)]
|
||||
|
||||
Reference in New Issue
Block a user