diff --git a/cumulus/parachains/integration-tests/emulated/chains/relays/rococo/src/lib.rs b/cumulus/parachains/integration-tests/emulated/chains/relays/rococo/src/lib.rs index 240c0931ae5af..74f66454f87c5 100644 --- a/cumulus/parachains/integration-tests/emulated/chains/relays/rococo/src/lib.rs +++ b/cumulus/parachains/integration-tests/emulated/chains/relays/rococo/src/lib.rs @@ -25,7 +25,7 @@ use emulated_integration_tests_common::{ // Rococo declaration decl_test_relay_chains! { - #[api_version(12)] + #[api_version(13)] pub struct Rococo { genesis = genesis::genesis(), on_init = (), diff --git a/cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs b/cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs index 729bb3ad63d16..fb0728f15d216 100644 --- a/cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs +++ b/cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs @@ -25,7 +25,7 @@ use emulated_integration_tests_common::{ // Westend declaration decl_test_relay_chains! { - #[api_version(12)] + #[api_version(13)] pub struct Westend { genesis = genesis::genesis(), on_init = (), diff --git a/polkadot/node/subsystem-types/src/messages.rs b/polkadot/node/subsystem-types/src/messages.rs index ed9300be249e1..9181868f07ccf 100644 --- a/polkadot/node/subsystem-types/src/messages.rs +++ b/polkadot/node/subsystem-types/src/messages.rs @@ -822,14 +822,14 @@ impl RuntimeApiRequest { /// `candidates_pending_availability` pub const CANDIDATES_PENDING_AVAILABILITY_RUNTIME_REQUIREMENT: u32 = 11; + /// `ValidationCodeBombLimit` + pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT: u32 = 12; + /// `backing_constraints` - pub const CONSTRAINTS_RUNTIME_REQUIREMENT: u32 = 12; + pub const CONSTRAINTS_RUNTIME_REQUIREMENT: u32 = 13; /// `SchedulingLookahead` - pub const SCHEDULING_LOOKAHEAD_RUNTIME_REQUIREMENT: u32 = 12; - - /// `ValidationCodeBombLimit` - pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT: u32 = 12; + pub const SCHEDULING_LOOKAHEAD_RUNTIME_REQUIREMENT: u32 = 13; } /// A message to the Runtime API subsystem. diff --git a/polkadot/primitives/src/runtime_api.rs b/polkadot/primitives/src/runtime_api.rs index 2471dc1fc0738..7feb5da434859 100644 --- a/polkadot/primitives/src/runtime_api.rs +++ b/polkadot/primitives/src/runtime_api.rs @@ -299,19 +299,21 @@ sp_api::decl_runtime_apis! { fn candidates_pending_availability(para_id: ppp::Id) -> Vec>; /***** Added in v12 *****/ + /// Retrieve the maximum uncompressed code size. + #[api_version(12)] + fn validation_code_bomb_limit() -> u32; + + /***** Added in v13 *****/ /// Returns the constraints on the actions that can be taken by a new parachain /// block. - #[api_version(12)] + #[api_version(13)] fn backing_constraints(para_id: ppp::Id) -> Option; - /***** Added in v12 *****/ + /***** Added in v13 *****/ /// Retrieve the scheduling lookahead - #[api_version(12)] + #[api_version(13)] fn scheduling_lookahead() -> u32; - /***** Added in v12 *****/ - /// Retrieve the maximum uncompressed code size. - #[api_version(12)] - fn validation_code_bomb_limit() -> u32; + } } diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index 4961d7bbad296..d8db3528ec25e 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -1992,7 +1992,7 @@ sp_api::impl_runtime_apis! { } } - #[api_version(12)] + #[api_version(13)] impl polkadot_primitives::runtime_api::ParachainHost for Runtime { fn validators() -> Vec { parachains_runtime_api_impl::validators::() diff --git a/polkadot/runtime/test-runtime/src/lib.rs b/polkadot/runtime/test-runtime/src/lib.rs index 226e22c078359..788d9433881ee 100644 --- a/polkadot/runtime/test-runtime/src/lib.rs +++ b/polkadot/runtime/test-runtime/src/lib.rs @@ -939,7 +939,7 @@ sp_api::impl_runtime_apis! { } } - #[api_version(12)] + #[api_version(13)] impl polkadot_primitives::runtime_api::ParachainHost for Runtime { fn validators() -> Vec { runtime_impl::validators::() diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index bb758afdf12fb..53a3409ca9eac 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -2076,7 +2076,7 @@ sp_api::impl_runtime_apis! { } } - #[api_version(12)] + #[api_version(13)] impl polkadot_primitives::runtime_api::ParachainHost for Runtime { fn validators() -> Vec { parachains_runtime_api_impl::validators::() diff --git a/prdoc/pr_7981.prdoc b/prdoc/pr_7981.prdoc new file mode 100644 index 0000000000000..ef6c1e39b6044 --- /dev/null +++ b/prdoc/pr_7981.prdoc @@ -0,0 +1,16 @@ +title: Bump ParachainHost runtime API to 13 +doc: +- audience: [Runtime Dev, Node Dev] + description: |- + Bump `backing_constraints` and `scheduling_lookahead` API version to 13. + The `validation_code_bomb_limit` API remains at version 12. + Bump all ParachainHost runtime to version 13 in all test runtimes. +crates: +- name: polkadot-node-subsystem-types + bump: minor +- name: polkadot-primitives + bump: minor +- name: rococo-runtime + bump: minor +- name: westend-runtime + bump: minor