Stop keeping track of epoch changes for the sync gap (#13127)

* Stop keeping track of epoch changes data within the sync gap

* Fix docs

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <git@kchr.de>

* Fix typo

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Davide Galassi
2023-01-12 20:36:31 +01:00
committed by GitHub
parent cf7bf3d142
commit 7aa88e6a59
3 changed files with 33 additions and 454 deletions
@@ -64,7 +64,7 @@ where
header
});
EpochChanges { inner, epochs, gap: None }
EpochChanges { inner, epochs }
}
}
@@ -75,6 +75,6 @@ where
{
/// Migrate the type into current epoch changes definition.
pub fn migrate(self) -> EpochChanges<Hash, Number, E> {
EpochChanges { inner: self.inner, epochs: self.epochs, gap: None }
EpochChanges { inner: self.inner, epochs: self.epochs }
}
}