mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Fix Capella schema downgrades (#4004)
This commit is contained in:
@@ -42,9 +42,8 @@ pub enum Error {
|
||||
},
|
||||
BlockReplayError(BlockReplayError),
|
||||
AddPayloadLogicError,
|
||||
ResyncRequiredForExecutionPayloadSeparation,
|
||||
SlotClockUnavailableForMigration,
|
||||
V9MigrationFailure(Hash256),
|
||||
UnableToDowngrade,
|
||||
InconsistentFork(InconsistentFork),
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user