From 59a07d717766c6efd12acc41167f2513f6a0ba47 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Mon, 11 Nov 2024 16:25:18 +0800 Subject: [PATCH] cleanup --- app/versiondb.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/versiondb.go b/app/versiondb.go index ccc7f5d0b6..1051324593 100644 --- a/app/versiondb.go +++ b/app/versiondb.go @@ -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