mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Add assignment keys to session keys, no separate approvals key (#2092)
* guide: merge backing and approval keys * bump substrate master & update primitives * use new SessionInfo struct in session_info * session keys upgrade for Polkadot * kusama & westend runtimes * bump westend, kusama, and polkadot versions * add session key to rococo & test-runtime * update prepare-test-net to latest subkey * update chain specs to support new para_assignment session key * get cargo.lock from master * formatting * update kill_storage based on substrate master * fix test-service * assgn -> asgn * use session info module for assignment session key
This commit is contained in:
committed by
GitHub
parent
04e9489da6
commit
15c253117d
@@ -28,7 +28,8 @@ use primitives::v1::{
|
||||
AccountId, AccountIndex, Balance, BlockNumber, Hash, Nonce, Signature, Moment,
|
||||
GroupRotationInfo, CoreState, Id, ValidationData, ValidationCode, CandidateEvent,
|
||||
ValidatorId, ValidatorIndex, CommittedCandidateReceipt, OccupiedCoreAssumption,
|
||||
PersistedValidationData, InboundDownwardMessage, InboundHrmpMessage, SessionInfo,
|
||||
PersistedValidationData, InboundDownwardMessage, InboundHrmpMessage,
|
||||
SessionInfo as SessionInfoData,
|
||||
};
|
||||
use runtime_common::{
|
||||
SlowAdjustingFeeUpdate,
|
||||
@@ -147,7 +148,8 @@ impl_opaque_keys! {
|
||||
pub grandpa: Grandpa,
|
||||
pub babe: Babe,
|
||||
pub im_online: ImOnline,
|
||||
pub parachain_validator: Initializer,
|
||||
pub para_validator: Initializer,
|
||||
pub para_assignment: SessionInfo,
|
||||
pub authority_discovery: AuthorityDiscovery,
|
||||
}
|
||||
}
|
||||
@@ -189,6 +191,7 @@ construct_runtime! {
|
||||
Dmp: parachains_dmp::{Module, Call, Storage},
|
||||
Ump: parachains_ump::{Module, Call, Storage},
|
||||
Hrmp: parachains_hrmp::{Module, Call, Storage},
|
||||
SessionInfo: parachains_session_info::{Module, Call, Storage},
|
||||
|
||||
Registrar: paras_registrar::{Module, Call, Storage},
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Module, Call},
|
||||
@@ -687,7 +690,7 @@ sp_api::impl_runtime_apis! {
|
||||
})
|
||||
}
|
||||
|
||||
fn session_info(index: SessionIndex) -> Option<SessionInfo> {
|
||||
fn session_info(index: SessionIndex) -> Option<SessionInfoData> {
|
||||
runtime_api_impl::session_info::<Runtime>(index)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user