This is specially useful for testing, which requires to set Drand Quicknet's pk on every startup.
We could use pallet:genesis_config and pallet::genesis_build like
#[pallet::genesis_config]
pub struct GenesisConfig<T: Config> {
pub pk: Option<PubkeyOf<T>>,
}
#[pallet::genesis_build]
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
fn build(&self) {
Pubkey::<T>::set(self.pk.clone());
}
}
And then add it to the genesis_config_presets.rs