18 lines
446 B
Go
18 lines
446 B
Go
package store
|
|
|
|
import (
|
|
dbm "github.com/tendermint/tm-db"
|
|
|
|
"github.com/cosmos/cosmos-sdk/store/cache"
|
|
"github.com/cosmos/cosmos-sdk/store/rootmulti"
|
|
"github.com/cosmos/cosmos-sdk/store/types"
|
|
)
|
|
|
|
func NewCommitMultiStore(db dbm.DB) types.CommitMultiStore {
|
|
return rootmulti.NewStore(db)
|
|
}
|
|
|
|
func NewCommitKVStoreCacheManager() types.MultiStorePersistentCache {
|
|
return cache.NewCommitKVStoreCacheManager(cache.DefaultCommitKVStoreCacheSize)
|
|
}
|