Skip to content

Commit

Permalink
feat: remove things from AppWithMigrations interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Aug 15, 2024
1 parent e30354e commit 2f94921
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions node/utils/interface.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package utils

import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
abci "github.com/tendermint/tendermint/abci/types"
)

type AppWithMigrations interface {
abci.Application

RunMigrations() []byte
GetCommitMultiStore() storetypes.CommitMultiStore
SetCommitMultiStore(cms storetypes.CommitMultiStore)
}
10 changes: 0 additions & 10 deletions node/utils/multiplexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"

v1 "github.com/celestiaorg/celestia-app/v2/pkg/appconsts/v1"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
abci "github.com/tendermint/tendermint/abci/types"
tmdb "github.com/tendermint/tm-db"
)
Expand Down Expand Up @@ -70,14 +68,6 @@ func (m *Multiplexer) ProcessProposal(request abci.RequestProcessProposal) abci.
func (m *Multiplexer) BeginBlock(request abci.RequestBeginBlock) abci.ResponseBeginBlock {
fmt.Printf("Multiplexer BeginBlock invoked with current app version %v\n", m.currentAppVersion)
app := m.getCurrentApp()
cms := app.GetCommitMultiStore()
key := storetypes.NewKVStoreKey(capabilitytypes.StoreKey)
// store := cms.GetStore(key)
// fmt.Printf("store %v\n", store)
// kvStore := cms.GetKVStore(key)
commitKVStore := cms.GetCommitKVStore(key)
fmt.Printf("kvStore %v\n", commitKVStore)

return app.BeginBlock(request)
}

Expand Down

0 comments on commit 2f94921

Please sign in to comment.