Fix Capella schema downgrades (#4004)

This commit is contained in:
Michael Sproul
2023-02-20 17:50:42 +11:00
committed by GitHub
parent 9a41f65b89
commit 0b6850221e
7 changed files with 171 additions and 11 deletions

View File

@@ -42,9 +42,8 @@ pub enum Error {
},
BlockReplayError(BlockReplayError),
AddPayloadLogicError,
ResyncRequiredForExecutionPayloadSeparation,
SlotClockUnavailableForMigration,
V9MigrationFailure(Hash256),
UnableToDowngrade,
InconsistentFork(InconsistentFork),
}

View File

@@ -1176,6 +1176,11 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
&self.spec
}
/// Get a reference to the `Logger` used by the database.
pub fn logger(&self) -> &Logger {
&self.log
}
/// Fetch a copy of the current split slot from memory.
pub fn get_split_slot(&self) -> Slot {
self.split.read_recursive().slot