babe: restore epoch changes migration code (#5487)

This was removed in https://github.com/paritytech/substrate/pull/5291
but is still too early to do it as it requires nodes still on Polkadot
v0.7.26 to resync from scratch.
This commit is contained in:
André Silva
2020-04-01 18:43:34 +01:00
committed by GitHub
parent b86c7e87a9
commit c4aa597516
3 changed files with 132 additions and 2 deletions
@@ -16,6 +16,8 @@
//! Generic utilities for epoch-based consensus engines.
pub mod migration;
use std::{sync::Arc, ops::Add, collections::BTreeMap, borrow::{Borrow, BorrowMut}};
use parking_lot::Mutex;
use codec::{Encode, Decode};