mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-22 19:56:20 +00:00
Fetch Babe configuration from runtime state (#11760)
* Fetch babe config data from runtime state * Some renaming * More renaming * Final nits * Fix tests and benches * Rename to in BabeConfiguration * Remove duplicate babe parameter description Already specified over the 'PRIMARY_PROBABILITY' constant value * trigger pipeline * trigger pipeline
This commit is contained in:
1 parent
f919894c84
commit
83aec6f93a
14 files changed
+125
-155
No files matched your search
@@ -849,12 +849,12 @@ cfg_if! {
|
||||
}
|
||||
|
||||
impl sp_consensus_babe::BabeApi<Block> for Runtime {
|
||||
fn configuration() -> sp_consensus_babe::BabeGenesisConfiguration {
|
||||
sp_consensus_babe::BabeGenesisConfiguration {
|
||||
fn configuration() -> sp_consensus_babe::BabeConfiguration {
|
||||
sp_consensus_babe::BabeConfiguration {
|
||||
slot_duration: 1000,
|
||||
epoch_length: EpochDuration::get(),
|
||||
c: (3, 10),
|
||||
genesis_authorities: system::authorities()
|
||||
authorities: system::authorities()
|
||||
.into_iter().map(|x|(x, 1)).collect(),
|
||||
randomness: <pallet_babe::Pallet<Runtime>>::randomness(),
|
||||
allowed_slots: AllowedSlots::PrimaryAndSecondaryPlainSlots,
|
||||
@@ -1123,12 +1123,12 @@ cfg_if! {
|
||||
}
|
||||
|
||||
impl sp_consensus_babe::BabeApi<Block> for Runtime {
|
||||
fn configuration() -> sp_consensus_babe::BabeGenesisConfiguration {
|
||||
sp_consensus_babe::BabeGenesisConfiguration {
|
||||
fn configuration() -> sp_consensus_babe::BabeConfiguration {
|
||||
sp_consensus_babe::BabeConfiguration {
|
||||
slot_duration: 1000,
|
||||
epoch_length: EpochDuration::get(),
|
||||
c: (3, 10),
|
||||
genesis_authorities: system::authorities()
|
||||
authorities: system::authorities()
|
||||
.into_iter().map(|x|(x, 1)).collect(),
|
||||
randomness: <pallet_babe::Pallet<Runtime>>::randomness(),
|
||||
allowed_slots: AllowedSlots::PrimaryAndSecondaryPlainSlots,
|
||||
|
||||
Reference in new issue
Block a user