Skip to content

Commit

Permalink
Delete slasher schema v4
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jun 21, 2024
1 parent 336cfa1 commit c953948
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion slasher/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 0 additions & 4 deletions slasher/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ impl<E: EthSpec> SlasherDB<E> {
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,
Expand Down

0 comments on commit c953948

Please sign in to comment.