-
Notifications
You must be signed in to change notification settings - Fork 970
Open
Labels
Description
Motivation
The Slasher database currently lacks schema upgrade logic for the Redb backend. This can cause mismatches when upgrading Lighthouse versions, as schema changes aren’t automatically migrated. We already have upgrade handling for the Beacon Node database, and Slasher should mirror this behavior for consistency and safety.
Description
We need to:
- Add
upgradeandis_redbmethods toslasher/database/interface.rs. - Implement
upgradein the Redb backend (redb_impl.rs). - Increment the
CURRENT_SCHEMA_VERSION. - Extend
slasher/src/migrate.rsso that if Redb is one version behind, it performs an upgrade. - Ensure downgrade scenarios (where DB schema > software schema) fail cleanly with an error.
Reactions are currently unavailable