From c953948fbf971e377ac3f2823ccbaf31d2f4d5f3 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Fri, 21 Jun 2024 14:13:22 +1000 Subject: [PATCH] Delete slasher schema v4 --- slasher/src/database.rs | 2 +- slasher/src/migrate.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/slasher/src/database.rs b/slasher/src/database.rs index 2463c77f41e..81e9faa5bdd 100644 --- a/slasher/src/database.rs +++ b/slasher/src/database.rs @@ -25,7 +25,7 @@ use types::{ }; /// Current database schema version, to check compatibility of on-disk DB with software. -pub const CURRENT_SCHEMA_VERSION: u64 = 4; +pub const CURRENT_SCHEMA_VERSION: u64 = 3; /// Metadata about the slashing database itself. const METADATA_DB: &str = "metadata"; diff --git a/slasher/src/migrate.rs b/slasher/src/migrate.rs index ce298caaf2c..674ab9c132d 100644 --- a/slasher/src/migrate.rs +++ b/slasher/src/migrate.rs @@ -17,10 +17,6 @@ impl SlasherDB { software_schema_version: CURRENT_SCHEMA_VERSION, }), (x, y) if x == y => Ok(self), - (3, 4) => { - // TODO(electra): db migration due to `IndexedAttestationOnDisk` - Ok(self) - } (_, _) => Err(Error::IncompatibleSchemaVersion { database_schema_version: schema_version, software_schema_version: CURRENT_SCHEMA_VERSION,