Skip to content

Commit 659f6e0

Browse files
authored
kusama: enable disabling ParachainHost API (polkadot-fellows#148)
Closes paritytech/polkadot-sdk#2967.
1 parent 418a2a9 commit 659f6e0

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1111
- Introduce chain spec generator ([polkadot-fellows/runtimes#127](https://github.com/polkadot-fellows/runtimes/pull/127))
1212
- Add [Encointer](https://encointer.org) system parachain runtime, completing [RFC22](https://github.com/polkadot-fellows/RFCs/blob/main/text/0022-adopt-encointer-runtime.md) ([polkadot-fellows/runtimes#80](https://github.com/polkadot-fellows/runtimes/pull/80))
1313

14+
### Changed
15+
16+
- Upgrade parachains runtime API from v7 to v8 in Kusama ([polkadot-fellows/runtimes#148](https://github.com/polkadot-fellows/runtimes/pull/148)). Context: https://paritytech.github.io/polkadot-sdk/book/protocol-validator-disabling.html
17+
1418
## [1.1.0] 10.01.2024
1519

1620
### Changed

integration-tests/emulated/common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use xcm_emulator::{
3838
DefaultMessageProcessor,
3939
};
4040

41-
use polkadot_primitives::runtime_api::runtime_decl_for_parachain_host::ParachainHostV7;
41+
use polkadot_primitives::runtime_api::runtime_decl_for_parachain_host::ParachainHostV8;
4242

4343
decl_test_relay_chains! {
4444
#[api_version(5)]

relay/kusama/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ use runtime_parachains::{
5050
inclusion::{AggregateMessageOrigin, UmpQueueId},
5151
initializer as parachains_initializer, origin as parachains_origin, paras as parachains_paras,
5252
paras_inherent as parachains_paras_inherent, reward_points as parachains_reward_points,
53-
runtime_api_impl::v7 as parachains_runtime_api_impl,
53+
runtime_api_impl::{
54+
v7 as parachains_runtime_api_impl, vstaging as parachains_vstaging_api_impl,
55+
},
5456
scheduler as parachains_scheduler, session_info as parachains_session_info,
5557
shared as parachains_shared,
5658
};
@@ -1828,7 +1830,7 @@ sp_api::impl_runtime_apis! {
18281830
}
18291831
}
18301832

1831-
#[api_version(7)]
1833+
#[api_version(8)]
18321834
impl primitives::runtime_api::ParachainHost<Block, Hash, BlockNumber> for Runtime {
18331835
fn validators() -> Vec<ValidatorId> {
18341836
parachains_runtime_api_impl::validators::<Runtime>()
@@ -1971,6 +1973,10 @@ sp_api::impl_runtime_apis! {
19711973
fn async_backing_params() -> primitives::AsyncBackingParams {
19721974
parachains_runtime_api_impl::async_backing_params::<Runtime>()
19731975
}
1976+
1977+
fn disabled_validators() -> Vec<ValidatorIndex> {
1978+
parachains_vstaging_api_impl::disabled_validators::<Runtime>()
1979+
}
19741980
}
19751981

19761982
impl beefy_primitives::BeefyApi<Block, BeefyId> for Runtime {

0 commit comments

Comments
 (0)