File tree 8 files changed +35
-17
lines changed
cumulus/parachains/integration-tests/emulated/chains/relays
8 files changed +35
-17
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ use emulated_integration_tests_common::{
25
25
26
26
// Rococo declaration
27
27
decl_test_relay_chains ! {
28
- #[ api_version( 12 ) ]
28
+ #[ api_version( 13 ) ]
29
29
pub struct Rococo {
30
30
genesis = genesis:: genesis( ) ,
31
31
on_init = ( ) ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ use emulated_integration_tests_common::{
25
25
26
26
// Westend declaration
27
27
decl_test_relay_chains ! {
28
- #[ api_version( 12 ) ]
28
+ #[ api_version( 13 ) ]
29
29
pub struct Westend {
30
30
genesis = genesis:: genesis( ) ,
31
31
on_init = ( ) ,
Original file line number Diff line number Diff line change @@ -822,14 +822,14 @@ impl RuntimeApiRequest {
822
822
/// `candidates_pending_availability`
823
823
pub const CANDIDATES_PENDING_AVAILABILITY_RUNTIME_REQUIREMENT : u32 = 11 ;
824
824
825
+ /// `ValidationCodeBombLimit`
826
+ pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT : u32 = 12 ;
827
+
825
828
/// `backing_constraints`
826
- pub const CONSTRAINTS_RUNTIME_REQUIREMENT : u32 = 12 ;
829
+ pub const CONSTRAINTS_RUNTIME_REQUIREMENT : u32 = 13 ;
827
830
828
831
/// `SchedulingLookahead`
829
- pub const SCHEDULING_LOOKAHEAD_RUNTIME_REQUIREMENT : u32 = 12 ;
830
-
831
- /// `ValidationCodeBombLimit`
832
- pub const VALIDATION_CODE_BOMB_LIMIT_RUNTIME_REQUIREMENT : u32 = 12 ;
832
+ pub const SCHEDULING_LOOKAHEAD_RUNTIME_REQUIREMENT : u32 = 13 ;
833
833
}
834
834
835
835
/// A message to the Runtime API subsystem.
Original file line number Diff line number Diff line change @@ -299,19 +299,21 @@ sp_api::decl_runtime_apis! {
299
299
fn candidates_pending_availability( para_id: ppp:: Id ) -> Vec <CommittedCandidateReceipt <Hash >>;
300
300
301
301
/***** Added in v12 *****/
302
+ /// Retrieve the maximum uncompressed code size.
303
+ #[ api_version( 12 ) ]
304
+ fn validation_code_bomb_limit( ) -> u32 ;
305
+
306
+ /***** Added in v13 *****/
302
307
/// Returns the constraints on the actions that can be taken by a new parachain
303
308
/// block.
304
- #[ api_version( 12 ) ]
309
+ #[ api_version( 13 ) ]
305
310
fn backing_constraints( para_id: ppp:: Id ) -> Option <Constraints >;
306
311
307
- /***** Added in v12 *****/
312
+ /***** Added in v13 *****/
308
313
/// Retrieve the scheduling lookahead
309
- #[ api_version( 12 ) ]
314
+ #[ api_version( 13 ) ]
310
315
fn scheduling_lookahead( ) -> u32 ;
311
316
312
- /***** Added in v12 *****/
313
- /// Retrieve the maximum uncompressed code size.
314
- #[ api_version( 12 ) ]
315
- fn validation_code_bomb_limit( ) -> u32 ;
317
+
316
318
}
317
319
}
Original file line number Diff line number Diff line change @@ -1992,7 +1992,7 @@ sp_api::impl_runtime_apis! {
1992
1992
}
1993
1993
}
1994
1994
1995
- #[ api_version( 12 ) ]
1995
+ #[ api_version( 13 ) ]
1996
1996
impl polkadot_primitives:: runtime_api:: ParachainHost <Block > for Runtime {
1997
1997
fn validators( ) -> Vec <ValidatorId > {
1998
1998
parachains_runtime_api_impl:: validators:: <Runtime >( )
Original file line number Diff line number Diff line change @@ -939,7 +939,7 @@ sp_api::impl_runtime_apis! {
939
939
}
940
940
}
941
941
942
- #[ api_version( 12 ) ]
942
+ #[ api_version( 13 ) ]
943
943
impl polkadot_primitives:: runtime_api:: ParachainHost <Block > for Runtime {
944
944
fn validators( ) -> Vec <ValidatorId > {
945
945
runtime_impl:: validators:: <Runtime >( )
Original file line number Diff line number Diff line change @@ -2076,7 +2076,7 @@ sp_api::impl_runtime_apis! {
2076
2076
}
2077
2077
}
2078
2078
2079
- #[ api_version( 12 ) ]
2079
+ #[ api_version( 13 ) ]
2080
2080
impl polkadot_primitives:: runtime_api:: ParachainHost <Block > for Runtime {
2081
2081
fn validators( ) -> Vec <ValidatorId > {
2082
2082
parachains_runtime_api_impl:: validators:: <Runtime >( )
Original file line number Diff line number Diff line change
1
+ title: Bump ParachainHost runtime API to 13
2
+ doc:
3
+ - audience: [Runtime Dev, Node Dev]
4
+ description: |-
5
+ Bump `backing_constraints` and `scheduling_lookahead` API version to 13.
6
+ The `validation_code_bomb_limit` API remains at version 12.
7
+ Bump all ParachainHost runtime to version 13 in all test runtimes.
8
+ crates:
9
+ - name: polkadot-node-subsystem-types
10
+ bump: minor
11
+ - name: polkadot-primitives
12
+ bump: minor
13
+ - name: rococo-runtime
14
+ bump: minor
15
+ - name: westend-runtime
16
+ bump: minor
You can’t perform that action at this time.
0 commit comments