mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 04:41:04 +00:00
Companion PR for substrate PR 8072 - Add a config field to babe epochs (#2467)
* Add a config field to babe epochs * Fix test * Add BABE_GENESIS_EPOCH_CONFIG consts * Use PrimaryAndSecondaryVRFSlots and remove newlines * Make epoch_configs Some * Fix tests * Fix test service tests * Add a BabeEpochConfigMigrations OnRuntimeUpgrade * Apply suggestions * Use PrimaryAndSecondaryPlainSlots in kusama * Remove migration from test runtime and rococo * Add HasPalletPrefix * Rename to BabePalletPrefix and change BabeApi -> Babe * "Update Substrate" * Update substrate * Resolve parantheses errors Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -261,7 +261,10 @@ fn polkadot_staging_testnet_config_genesis(wasm_binary: &[u8]) -> polkadot::Gene
|
||||
phantom: Default::default(),
|
||||
},
|
||||
pallet_membership_Instance1: Default::default(),
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: polkadot::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(polkadot::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: polkadot::AuthorityDiscoveryConfig { keys: vec![] },
|
||||
@@ -448,7 +451,10 @@ fn westend_staging_testnet_config_genesis(wasm_binary: &[u8]) -> westend::Genesi
|
||||
slash_reward_fraction: Perbill::from_percent(10),
|
||||
..Default::default()
|
||||
},
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: westend::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(westend::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: westend::AuthorityDiscoveryConfig { keys: vec![] },
|
||||
@@ -644,7 +650,10 @@ fn kusama_staging_testnet_config_genesis(wasm_binary: &[u8]) -> kusama::GenesisC
|
||||
phantom: Default::default(),
|
||||
},
|
||||
pallet_membership_Instance1: Default::default(),
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: kusama::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(kusama::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: kusama::AuthorityDiscoveryConfig { keys: vec![] },
|
||||
@@ -850,7 +859,10 @@ fn rococo_staging_testnet_config_genesis(wasm_binary: &[u8]) -> rococo_runtime::
|
||||
),
|
||||
)).collect::<Vec<_>>(),
|
||||
},
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: rococo_runtime::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(rococo_runtime::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: rococo_runtime::AuthorityDiscoveryConfig {
|
||||
@@ -1130,7 +1142,10 @@ pub fn polkadot_testnet_genesis(
|
||||
phantom: Default::default(),
|
||||
},
|
||||
pallet_membership_Instance1: Default::default(),
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: polkadot::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(polkadot::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: polkadot::AuthorityDiscoveryConfig { keys: vec![] },
|
||||
@@ -1225,7 +1240,10 @@ pub fn kusama_testnet_genesis(
|
||||
phantom: Default::default(),
|
||||
},
|
||||
pallet_membership_Instance1: Default::default(),
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: kusama::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(kusama::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: kusama::AuthorityDiscoveryConfig { keys: vec![] },
|
||||
@@ -1309,7 +1327,10 @@ pub fn westend_testnet_genesis(
|
||||
slash_reward_fraction: Perbill::from_percent(10),
|
||||
..Default::default()
|
||||
},
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: westend::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(westend::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: westend::AuthorityDiscoveryConfig { keys: vec![] },
|
||||
@@ -1363,7 +1384,10 @@ pub fn rococo_testnet_genesis(
|
||||
),
|
||||
)).collect::<Vec<_>>(),
|
||||
},
|
||||
pallet_babe: Default::default(),
|
||||
pallet_babe: rococo_runtime::BabeConfig {
|
||||
authorities: Default::default(),
|
||||
epoch_config: Some(rococo_runtime::BABE_GENESIS_EPOCH_CONFIG),
|
||||
},
|
||||
pallet_grandpa: Default::default(),
|
||||
pallet_im_online: Default::default(),
|
||||
pallet_authority_discovery: rococo_runtime::AuthorityDiscoveryConfig {
|
||||
|
||||
Reference in New Issue
Block a user