mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
babe: support online configuration upgrades (#5514)
* babe: support online configuration upgrades * Switch to use NextConfigDescriptor instead of changing runtime interface * Fix tests * epoch-changes: map function that allows converting with different epoch types * Add migration script for the epoch config change * Fix migration tests * Fix migration: Epoch should be EpochV0 * Update client/consensus/babe/src/lib.rs Co-Authored-By: André Silva <123550+andresilva@users.noreply.github.com> * Fix new epochChanges version * Fix unused imports Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
@@ -633,8 +633,8 @@ cfg_if! {
|
||||
}
|
||||
|
||||
impl sp_consensus_babe::BabeApi<Block> for Runtime {
|
||||
fn configuration() -> sp_consensus_babe::BabeConfiguration {
|
||||
sp_consensus_babe::BabeConfiguration {
|
||||
fn configuration() -> sp_consensus_babe::BabeGenesisConfiguration {
|
||||
sp_consensus_babe::BabeGenesisConfiguration {
|
||||
slot_duration: 1000,
|
||||
epoch_length: EpochDuration::get(),
|
||||
c: (3, 10),
|
||||
@@ -827,8 +827,8 @@ cfg_if! {
|
||||
}
|
||||
|
||||
impl sp_consensus_babe::BabeApi<Block> for Runtime {
|
||||
fn configuration() -> sp_consensus_babe::BabeConfiguration {
|
||||
sp_consensus_babe::BabeConfiguration {
|
||||
fn configuration() -> sp_consensus_babe::BabeGenesisConfiguration {
|
||||
sp_consensus_babe::BabeGenesisConfiguration {
|
||||
slot_duration: 1000,
|
||||
epoch_length: EpochDuration::get(),
|
||||
c: (3, 10),
|
||||
|
||||
Reference in New Issue
Block a user