Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Nov 11, 2024
1 parent c22c7d4 commit 59a07d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/versiondb.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ func (app *App) setupVersionDB(
return nil, err
}

versionDB, err := tsrocksdb.NewStore(dataDir)
if err != nil {
return nil, err
}

// default to exposing all
exposeStoreKeys := make([]storetypes.StoreKey, 0, len(keys))
for _, storeKey := range keys {
exposeStoreKeys = append(exposeStoreKeys, storeKey)
}

versionDB, err := tsrocksdb.NewStore(dataDir)
if err != nil {
return nil, err
}

// see: https://github.com/crypto-org-chain/cronos/issues/1683
if err := versionDB.FixData(exposedKeys); err != nil {
return nil, err
Expand Down

0 comments on commit 59a07d7

Please sign in to comment.