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 authored Nov 23, 2023
1 parent ea63f70 commit 29d1647
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},

This comment has been minimized.

Copy link
@ldeffenb

ldeffenb Nov 23, 2023

Collaborator

Shouldn't this only happen for testnet nodes? Or is does this automatically recover if done to a mainnet node?

}

func migrateFB(s *Store) error {
Expand Down

0 comments on commit 29d1647

Please sign in to comment.