Skip to content

Commit

Permalink
feat: batchstore cleanup for sepolia migration (#4470)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Nov 27, 2023
1 parent c98a7fd commit 0618b5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/statestore/leveldb/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ const (
dBSchemaInterval = "interval"
dBSchemaClearAddressBook = "address-book"
dBSResetInterval = "interval-reset"
dBSchemaBatchStoreV5 = "batchstoreV5"
)

var (
dbSchemaCurrent = dBSResetInterval
dbSchemaCurrent = dBSchemaBatchStoreV5
)

type migration struct {
Expand All @@ -76,6 +77,7 @@ var schemaMigrations = []migration{
{name: dBSchemaInterval, fn: noOpMigration},
{name: dBSchemaClearAddressBook, fn: clearAddressBook},
{name: dBSResetInterval, fn: clearIntervals},
{name: dBSchemaBatchStoreV5, fn: migrateBatchstore},
}

func migrateFB(s *Store) error {
Expand Down

0 comments on commit 0618b5a

Please sign in to comment.