referrerpolicy=no-referrer-when-downgrade
people_rococo_runtime

Type Alias SessionConfig

Source
pub type SessionConfig = GenesisConfig<Runtime>;

Aliased Type§

struct SessionConfig {
    pub keys: Vec<(AccountId32, AccountId32, SessionKeys)>,
    pub non_authority_keys: Vec<(AccountId32, AccountId32, SessionKeys)>,
}

Fields§

§keys: Vec<(AccountId32, AccountId32, SessionKeys)>

Initial list of validator at genesis representing by their (AccountId, ValidatorId, Keys). These keys will be considered authorities for the first two sessions and they will be valid at least until session 2

§non_authority_keys: Vec<(AccountId32, AccountId32, SessionKeys)>

List of (AccountId, ValidatorId, Keys) that will be registered at genesis, but not as active validators. These keys are set, together with keys, as authority candidates for future sessions (enactable from session 2 onwards)

Trait Implementations

Source§

impl<T> BuildGenesisConfig for GenesisConfig<T>
where T: Config,

Source§

fn build(&self)

The build function puts initial GenesisConfig keys/values pairs into the storage.
Source§

impl<T> BuildStorage for GenesisConfig<T>
where T: Config,

Source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.
Source§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.
Source§

impl<T> Default for GenesisConfig<T>
where T: Config,

Source§

fn default() -> GenesisConfig<T>

Returns the “default value” for a type. Read more
Source§

impl<'de, T> Deserialize<'de> for GenesisConfig<T>
where T: Config,

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<GenesisConfig<T>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T> Serialize for GenesisConfig<T>
where T: Config,

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more